10.April 2026
This commit is contained in:
parent
a00c42e770
commit
f58c709945
208 changed files with 19280 additions and 2914 deletions
18
tests/Unit/Services/AboHelperSetAboStatusTest.php
Normal file
18
tests/Unit/Services/AboHelperSetAboStatusTest.php
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
<?php
|
||||
|
||||
use App\Models\ShoppingOrder;
|
||||
use App\Services\AboHelper;
|
||||
use Tests\TestCase;
|
||||
|
||||
uses(TestCase::class);
|
||||
|
||||
afterEach(function () {
|
||||
\Mockery::close();
|
||||
});
|
||||
|
||||
it('setAboStatus tut nichts wenn getUserAbo null ist', function () {
|
||||
$order = \Mockery::mock(ShoppingOrder::class);
|
||||
$order->shouldReceive('getUserAbo')->once()->andReturn(null);
|
||||
|
||||
AboHelper::setAboStatus($order, 2, true);
|
||||
});
|
||||
Loading…
Add table
Add a link
Reference in a new issue