pint fixes

This commit is contained in:
Joel Male
2024-09-08 12:20:36 +10:00
parent 6ea2cb3b8b
commit d4d4df7d58
12 changed files with 34 additions and 19 deletions
+3 -1
View File
@@ -4,4 +4,6 @@
use Illuminate\Support\Collection; use Illuminate\Support\Collection;
class CartCollection extends Collection {} class CartCollection extends Collection
{
}
+3 -1
View File
@@ -4,4 +4,6 @@
use Illuminate\Support\Collection; use Illuminate\Support\Collection;
class CartConditionCollection extends Collection {} class CartConditionCollection extends Collection
{
}
+3 -1
View File
@@ -2,4 +2,6 @@
namespace Wearepixel\Cart\Exceptions; namespace Wearepixel\Cart\Exceptions;
class InvalidConditionException extends \Exception {} class InvalidConditionException extends \Exception
{
}
+3 -1
View File
@@ -2,4 +2,6 @@
namespace Wearepixel\Cart\Exceptions; namespace Wearepixel\Cart\Exceptions;
class InvalidItemException extends \Exception {} class InvalidItemException extends \Exception
{
}
+3 -1
View File
@@ -2,4 +2,6 @@
namespace Wearepixel\Cart\Exceptions; namespace Wearepixel\Cart\Exceptions;
class UnknownModelException extends \Exception {} class UnknownModelException extends \Exception
{
}
+3 -1
View File
@@ -2,4 +2,6 @@
namespace Wearepixel\Cart\Validators; namespace Wearepixel\Cart\Validators;
class CartConditionValidator extends Validator {} class CartConditionValidator extends Validator
{
}
+3 -1
View File
@@ -2,4 +2,6 @@
namespace Wearepixel\Cart\Validators; namespace Wearepixel\Cart\Validators;
class CartItemValidator extends Validator {} class CartItemValidator extends Validator
{
}
+1 -1
View File
@@ -13,7 +13,7 @@
$events, $events,
'shopping', 'shopping',
'SAMPLESESSIONKEY', 'SAMPLESESSIONKEY',
require (__DIR__ . '/../Helpers/ConfigMock.php') require(__DIR__ . '/../Helpers/ConfigMock.php')
); );
}); });
+8 -7
View File
@@ -3,7 +3,8 @@
use Wearepixel\Cart\Cart; use Wearepixel\Cart\Cart;
use Wearepixel\Cart\Tests\Helpers\SessionMock; use Wearepixel\Cart\Tests\Helpers\SessionMock;
beforeEach(function () {}); beforeEach(function () {
});
afterEach(function () { afterEach(function () {
Mockery::close(); Mockery::close();
@@ -18,7 +19,7 @@
$events, $events,
'cart', 'cart',
'SAMPLESESSIONKEY', 'SAMPLESESSIONKEY',
require (__DIR__ . '/../Helpers/ConfigMock.php') require(__DIR__ . '/../Helpers/ConfigMock.php')
); );
expect(true)->toBeTrue(); expect(true)->toBeTrue();
@@ -35,7 +36,7 @@
$events, $events,
'cart', 'cart',
'SAMPLESESSIONKEY', 'SAMPLESESSIONKEY',
require (__DIR__ . '/../Helpers/ConfigMock.php') require(__DIR__ . '/../Helpers/ConfigMock.php')
); );
$cart->add(455, 'Sample Item', 100.99, 2, []); $cart->add(455, 'Sample Item', 100.99, 2, []);
@@ -54,7 +55,7 @@
$events, $events,
'cart', 'cart',
'SAMPLESESSIONKEY', 'SAMPLESESSIONKEY',
require (__DIR__ . '/../Helpers/ConfigMock.php') require(__DIR__ . '/../Helpers/ConfigMock.php')
); );
$cart->add(455, 'Sample Item 1', 100.99, 2, []); $cart->add(455, 'Sample Item 1', 100.99, 2, []);
@@ -98,7 +99,7 @@
$events, $events,
'cart', 'cart',
'SAMPLESESSIONKEY', 'SAMPLESESSIONKEY',
require (__DIR__ . '/../Helpers/ConfigMock.php') require(__DIR__ . '/../Helpers/ConfigMock.php')
); );
$cart->add($items); $cart->add($items);
@@ -143,7 +144,7 @@
$events, $events,
'cart', 'cart',
'SAMPLESESSIONKEY', 'SAMPLESESSIONKEY',
require (__DIR__ . '/../Helpers/ConfigMock.php') require(__DIR__ . '/../Helpers/ConfigMock.php')
); );
$cart->add($items); $cart->add($items);
@@ -190,7 +191,7 @@
$events, $events,
'cart', 'cart',
'SAMPLESESSIONKEY', 'SAMPLESESSIONKEY',
require (__DIR__ . '/../Helpers/ConfigMock.php') require(__DIR__ . '/../Helpers/ConfigMock.php')
); );
$cart->add($items); $cart->add($items);
+2 -2
View File
@@ -12,7 +12,7 @@
$events, $events,
'shopping', 'shopping',
'uniquesessionkey123', 'uniquesessionkey123',
require (__DIR__ . '/../Helpers/ConfigMock.php') require(__DIR__ . '/../Helpers/ConfigMock.php')
); );
$this->cart2 = new Cart( $this->cart2 = new Cart(
@@ -20,7 +20,7 @@
$events, $events,
'wishlist', 'wishlist',
'uniquesessionkey456', 'uniquesessionkey456',
require (__DIR__ . '/../Helpers/ConfigMock.php') require(__DIR__ . '/../Helpers/ConfigMock.php')
); );
}); });
+1 -1
View File
@@ -14,7 +14,7 @@
$events, $events,
'shopping', 'shopping',
'SAMPLESESSIONKEY', 'SAMPLESESSIONKEY',
require (__DIR__ . '/../Helpers/ConfigMock.php') require(__DIR__ . '/../Helpers/ConfigMock.php')
); );
}); });
+1 -1
View File
@@ -12,7 +12,7 @@
$events, $events,
'shopping', 'shopping',
'SAMPLESESSIONKEY', 'SAMPLESESSIONKEY',
require (__DIR__ . '/../Helpers/ConfigMockOtherFormat.php') require(__DIR__ . '/../Helpers/ConfigMockOtherFormat.php')
); );
}); });