More code cleanup

This commit is contained in:
James Cole
2023-12-20 19:45:12 +01:00
parent 4961b1f715
commit c9d5d74662
30 changed files with 420 additions and 422 deletions

View File

@@ -33,8 +33,12 @@ use PHPUnit\Framework\TestCase;
* @group unit-test
* @group support
* @group navigation
*
* @internal
*
* @coversNothing
*/
class NavigationStartOfPeriodTest extends TestCase
final class NavigationStartOfPeriodTest extends TestCase
{
private Navigation $navigation;
@@ -98,8 +102,9 @@ class NavigationStartOfPeriodTest extends TestCase
public function testGivenADateAndUnknownFrequencyWhenCalculateTheDateThenReturnsTheSameDateSuccessful(string $frequency, Carbon $from, Carbon $expected)
{
Log::shouldReceive('error')
->with(sprintf('Cannot do startOfPeriod for $repeat_freq "%s"', $frequency))
->andReturnNull();
->with(sprintf('Cannot do startOfPeriod for $repeat_freq "%s"', $frequency))
->andReturnNull()
;
$period = $this->navigation->startOfPeriod($from, $frequency);
self::assertSame($expected->toDateString(), $period->toDateString());