Releases: lucidarch/lucid
Releases · lucidarch/lucid
v1.0.11
Added
- Support unit instances with mocks
We can now mock unit instances that are written with the new PHP syntax the same as we did with the previous class string syntax:
$repo = $this->run(new GetGitHubRepoJob(id: $repoId, withReleases: false));
GetGitHubRepoJob::mock([
'id' => 'some-id-here',
'withReleases' => false,
])->shouldReturn($sampleRepo);
v1.0.10
v1.0.9
v1.0.8
Added
- Support generating features in subdirectories. More in Features docs
v1.0.7
v1.0.6
v1.0.5
v1.0.4
Changed
- Services in migrations are now optional. It is possible to call
lucid migrate
with no arguments which acts the same as Laravel's. Thanks to #22 @Batisska - Resolve units using the app container within the dispatcher (features, jobs, operations). Thanks to #17 @IlliaBalia
Fixed
- CI test paths
v1.0.3
Changed
- Tests will no longer be located away from the root
tests
directory, and will be distributed totests/Feature
andtests/Unit
Unit | From | To |
---|---|---|
Feature | tests/Features/*Test.php |
tests/Feature/*Test.php |
app/Services/<service>/Tests/*Test.php |
tests/Feature/Services/<service>/*Test.php |
|
Operation | tests/Operations/*Test.php |
tests/Unit/Operations/*Test.php |
app/Services/<service>/Tests/Operations/*Test.php |
tests/Unit/Services/<service>/Operations/*Test.php |
|
Job | app/Domains/<domain>/Tests/Jobs/*Test.php |
tests/Unit/Domains/<domain>/Jobs/*Test.php |
- Use proper namespaces for test files starting with
Tests\...
instead ofApp\..\Tests\...
Fixed
- Default test method names are generated using
Str::snake
instead ofmb_strtolower
(test_someawesomefeature
->test_some_awesome_feature
for a feature calledSomeAwesomeFeature
)