Releases

v0.0.91 12/2/2024

:sparkles: New Features

  • cc2147a - AbstractInScope: support scalar value add test (commit by @h4kuna)

v0.0.90 11/25/2024

:sparkles: New Features

  • 37e88ad - AbstractEloquentQuery: support throwable parameter for findOrFail (commit by @h4kuna)

v0.0.89 11/22/2024

:sparkles: New Features

  • a646777 - Http: support API versions with float + load also non-versioned routes file (commit by @pionl)

v0.0.88 10/17/2024

:sparkles: New Features

  • 9e21547 - ChunkWriteService: support iterable directly (commit by @h4kuna)

v0.0.87 9/9/2024

:sparkles: New Features

  • f85f6c5 - SqlTestEnable: add method assertSql() (commit by @h4kuna)

v0.0.86 8/7/2024

:boom: BREAKING CHANGES

  • due to a1a54e3 - Provide @template for JsonResource $resource for better type safe (commit by @pionl):

    PHPStan will now throw an error if you pass incorrect value to __construct or Resource::collection

    • made setContainer/getContainer/resourceArray/instance final

:sparkles: New Features

  • a1a54e3 - PHPStan: Provide @template for JsonResource $resource for better type safe (commit by @pionl)

v0.0.85 8/6/2024

:bug: Bug Fixes

  • faa4bae - ChunkWriteStateEntity: phpdoc (commit by @h4kuna)
  • 9816cf3 - CommandInQueue: update caseId (commit by @h4kuna)
  • 096ffce - SqlTestEnable: add Attribute from PhpUnit (commit by @h4kuna)

v0.0.84 7/30/2024

:sparkles: New Features

  • 7468a7c - SqlTestEnable: add fake connector for sql lite (commit by @h4kuna)
  • 52fc7fa - Testing: use native hooks instead of method overwrite (commit by @h4kuna)
  • c6384f8 - Database: add ChunkWriteService (commit by @h4kuna)
  • 7709c76 - serialize: add dependency on h4kuna/serialize (commit by @h4kuna)

v0.0.83 7/29/2024

:boom: BREAKING CHANGES

  • due to d9e2469 - Fix deleting cache in context and drop tags usage by default (commit by @pionl):

    Drop default tag for context cache - Laravel offical recommendation is not to use tags with redis

:bug: Bug Fixes

  • d9e2469 - Context: Fix deleting cache in context and drop tags usage by default (commit by @pionl)

v0.0.82 3/8/2024

:sparkles: New Features

  • 64d2322 - Database: Improve phpstan support for scopes (commit by @pionl)

v0.0.81 2/28/2024

:sparkles: New Features

  • 3429635 - Queue: Add _preHook closure to RunJobActionContractExpectation (commit by @pionl)

v0.0.80 2/28/2024

:bug: Bug Fixes

  • e1d93a3 - Queue: Improve RunJobActionContract $method signature (nullable) (commit by @pionl)

v0.0.79 2/28/2024

:bug: Bug Fixes

  • 28cfde8 - Queue: Add missing $method parameter to RunJobActionContract (commit by @pionl)

v0.0.78 2/28/2024

:sparkles: New Features

  • 046a9e3 - Queue: Add ability to dispatch job in testable way (commit by @pionl)

v0.0.77 2/6/2024

:sparkles: New Features

  • e2eb679 - CacheMeService: ttl defined like seconds instead of minutes (commit by @pionl)

v0.0.76 12/11/2023

:sparkles: New Features

  • 9a1ddb6 - ServiceProvider: Add ability to get tagged classes of given implementation (commit by @pionl)

v0.0.75 12/10/2023

:boom: BREAKING CHANGES

  • due to 7804785 - Improve PHPStan support for ContextEventsService (commit by @pionl):

    Dropped Closure event due the bad type usage

:sparkles: New Features

  • 7804785 - Context: Improve PHPStan support for ContextEventsService (commit by @pionl)

v0.0.74 11/22/2023

:boom: BREAKING CHANGES

  • due to dcb79f3 - OrderByValuesScope is now from ASC to DESC order of given values (commit by @pionl):

    Values must be ordered from prefered order to last wanted order (now it was incorrectly used)

:bug: Bug Fixes

  • dcb79f3 - Database: OrderByValuesScope is now from ASC to DESC order of given values (commit by @pionl)

v0.0.73 11/16/2023

:bug: Bug Fixes

  • c644785 - Testing: Internal variables for generated assert has prefix underscore (commit by @h4kuna)

v0.0.72 11/11/2023

:bug: Bug Fixes

  • 942323d - Testing: Fix assert listener when closure listener is registered (commit by @pionl)

v0.0.71 10/12/2023

:sparkles: New Features

  • e20cea1 - Core: Add contract for sleep service with no sleep implementation in tests (commit by @pionl)

v0.0.70 9/5/2023

:sparkles: New Features

  • 60da0a8 - Testing: GateAssert->authorize now throws exception if false response is returned (commit by @pionl)
  • 872fe0c - Testing: CreateRequest now accept user parameter that is passed to request (commit by @pionl)

v0.0.69 7/24/2023

:boom: BREAKING CHANGES

  • due to ecbd60b - Add ability to create request without Laravel container (commit by @pionl):

    createPostRequest has been renamed to createAndValidateRequest

:sparkles: New Features

  • ab64cfa - Testing: Move MockModels to Testing/Concerns namespace (commit by @pionl)
  • ecbd60b - Testing: Add ability to create request without Laravel container (commit by @pionl)

v0.0.68 7/24/2023

:sparkles: New Features

  • 1d55e84 - Testing: Add AssertProviderPolicies for testing policies (commit by @pionl)

v0.0.67 7/24/2023

:sparkles: New Features

  • e99a21e - Database: Add ability to force null values to 0.0 when using FloatCast (commit by @pionl)

v0.0.66 7/8/2023

:sparkles: New Features

  • 0583ac8 - Database: Add OrderByValuesScope for ordering by values in given order (commit by @pionl)

v0.0.65 6/30/2023

:sparkles: New Features

  • 62869c3 - Testing: ModelResourceTestCase allows entity in resource (commit by @pionl)

v0.0.64 6/30/2023

:boom: BREAKING CHANGES

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

:sparkles: New Features

  • 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)

:bug: Bug Fixes

  • 99006bf - Testing: PHPStorm run for ResourceTestCase with single data entry test (commit by @pionl)

:white_check_mark: Tests

  • 6a2788a - Add test for internal resources (commit by @pionl)

v0.0.63 6/28/2023

:sparkles: New Features

  • 2573fce - Http: Add JsonResource that can create instances (with unit testing) (commit by @pionl)
  • 882c3b5 - Testing: Add a unit test case for quick testing of resources (commit by @pionl)
  • 6e9a475 - Testing: Add ability to test models without Laravel framework (commit by @pionl)

v0.0.62 6/27/2023

:bug: Bug Fixes

  • c30fc9c - Testing: Upgrade Laravel assert (construct, nullable, remove array_values) (commit by @pionl)