18 lines
399 B
PHP
18 lines
399 B
PHP
<?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);
|
|
});
|