Opinionated extension of a Laravel framework to help you build type safe, testable and reusable code.
MIT License
Bot releases are visible (Hide)
Published by github-actions[bot] over 1 year ago
due to 780f59a
- ResourceTestCase $object supports mixed type or closure (commit by @pionl):
Update createResource typehint to mixed.
due to e3bf3ec
- Add support for setting container to collection of resources (commit by @pionl):
If you pass container and do not use JsonResource exception will be thrown.
due to 20b1ff4
- Move mockery to ModelResourceTestCase (commit by @pionl):
ResourceTestCase does not include Mockery. Use this if needed
use MockeryPHPUnitIntegration;
use MockeryTestCaseSetUp;
protected function mockeryTestSetUp(): void
{
$this->mockModels();
}
protected function mockeryTestTearDown(): void
{
}
due to 99006bf
- PHPStorm run for ResourceTestCase with single data entry test (commit by @pionl):
to allow running single data test in PHPStorm, test function was removed.
To run tests add this method when extending the TestCase.
/**
* @param \Closure(static):void $assert
* @dataProvider data
*/
public function test(\Closure $assert): void
{
$assert($this);
}
3e7b7e9
- Http: Update MessageResource to use own JsonResource (commit by @pionl)
780f59a
- Testing: ResourceTestCase $object supports mixed type or closure (commit by @pionl)
e3bf3ec
- Http: Add support for setting container to collection of resources (commit by @pionl)
20b1ff4
- Testing: Move mockery to ModelResourceTestCase (commit by @pionl)
34af3f0
- Http: Add resourceArray to JsonResource/ResourceTestCase (commit by @pionl)
99006bf
- Testing: PHPStorm run for ResourceTestCase with single data entry test (commit by @pionl)
6a2788a
- Add test for internal resources (commit by @pionl)
Published by github-actions[bot] over 1 year ago
Published by github-actions[bot] over 1 year ago
acc90a9
- AssertExpectations automatically checks if expectations were called (commit by @pionl):Due the changes the expectation logic has been changed and you need to update your code. How to migrate in PR #40
acc90a9
- Testing: AssertExpectations automatically checks if expectations were called (commit by @pionl)
Published by github-actions[bot] over 1 year ago
Published by github-actions[bot] over 1 year ago