mivita/tests/Unit/Services/AboHelperSetAboStatusTest.php
2026-04-10 17:15:27 +02:00

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);
});