Skip to content

Commit

Permalink
Change mockery to min 1.6
Browse files Browse the repository at this point in the history
  • Loading branch information
TomHAnderson committed Oct 29, 2024
1 parent 50fc9e8 commit 59c8858
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 12 deletions.
10 changes: 5 additions & 5 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,20 +29,20 @@
"illuminate/http": "^10.0 || ^11.0",
"laravel-doctrine/orm": "^3.0"
},
"suggest": {
"gedmo/doctrine-extensions": "Behavioral Doctrine2 extensions",
"beberlei/doctrineextensions": "Query/Type Doctrine2 extensions (^1.0)"
},
"require-dev": {
"beberlei/doctrineextensions": "^1.0",
"doctrine/coding-standard": "^12.0",
"gedmo/doctrine-extensions": "^2.4 | ^3.0",
"laravel/framework": "^10.0 || ^11.0",
"mockery/mockery": "^1.3.1",
"mockery/mockery": "^1.6",
"php-parallel-lint/php-parallel-lint": "^1.4",
"phpstan/phpstan": "^1.12",
"phpunit/phpunit": "^11.4"
},
"suggest": {
"gedmo/doctrine-extensions": "Behavioral Doctrine2 extensions",
"beberlei/doctrineextensions": "Query/Type Doctrine2 extensions (^1.0)"
},
"autoload": {
"psr-4": {
"LaravelDoctrine\\Extensions\\": "src/"
Expand Down
7 changes: 2 additions & 5 deletions tests/Feature/BeberleiExtensionsServiceProviderTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ public function setUp(): void

// silence the 'This test did not perform any assertions' warning
$this->assertTrue(true);

parent::setUp();
}

public function testCustomFunctionsCanBeRegistered(): void
Expand All @@ -33,9 +35,4 @@ public function testCustomFunctionsCanBeRegistered(): void

$this->provider->boot($this->manager);
}

public function tearDown(): void
{
m::close();
}
}
4 changes: 2 additions & 2 deletions tests/Feature/TestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ abstract class TestCase extends PHPUnitTestCase
public function setUp(): void
{
$this->evm = m::mock(EventManager::class);
$this->evm->shouldReceive('addEventSubscriber')->once();
$this->em = m::mock(EntityManagerInterface::class);

$this->em = m::mock(EntityManagerInterface::class);
$this->evm->shouldReceive('addEventSubscriber')->once();
}

public function tearDown(): void
Expand Down

0 comments on commit 59c8858

Please sign in to comment.