Currently some of the tests cant be ran individually i.e:
running vendor/bin/phpunit all tests pass.
running vendor/bin/phpunit tests/IlluminateActivationRepositoryTests.php fails with 1) Cartalyst\Sentinel\tests\IlluminateActivationRepositoryTest::testCreate Error: Call to a member function connection() on null
As far as i can tell, this is because the mocked connection is used from the previous tests rather than the test building it's own mocks. I'm not sure if this is a problem with mockery not closing down correctly?
However this also removes the dependency of other tests passing from most tests. Meaning all tests will run irrelevant of any other test status. Where as previously if some tests failed this could cause other tests to fail.
Ive also modified the throttling tests to match that of the others with the addThrottlingMock method
Currently some of the tests cant be ran individually i.e:
running
vendor/bin/phpunit
all tests pass.running
vendor/bin/phpunit tests/IlluminateActivationRepositoryTests.php
fails with1) Cartalyst\Sentinel\tests\IlluminateActivationRepositoryTest::testCreate Error: Call to a member function connection() on null
As far as i can tell, this is because the mocked connection is used from the previous tests rather than the test building it's own mocks. I'm not sure if this is a problem with mockery not closing down correctly?
However this also removes the dependency of other tests passing from most tests. Meaning all tests will run irrelevant of any other test status. Where as previously if some tests failed this could cause other tests to fail.
Ive also modified the throttling tests to match that of the others with the
addThrottlingMock
method