forked from laravel-doctrine/orm
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
58349d9
commit 1c3bfc2
Showing
5 changed files
with
89 additions
and
65 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
<?php | ||
|
||
namespace LaravelDoctrineTest\ORM\Assets\Extensions; | ||
|
||
use Doctrine\Common\EventManager; | ||
use Doctrine\ORM\EntityManagerInterface; | ||
use LaravelDoctrine\ORM\Extensions\Extension; | ||
use LaravelDoctrineTest\ORM\Feature\Extensions\ExtensionManagerTest; | ||
|
||
class ExtensionMock implements Extension | ||
{ | ||
public function addSubscribers(EventManager $manager, EntityManagerInterface $em): void | ||
{ | ||
// Confirm it gets called | ||
(new ExtensionManagerTest)->assertTrue(true); | ||
} | ||
|
||
/** | ||
* @return mixed[] | ||
*/ | ||
public function getFilters(): array | ||
{ | ||
return []; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
<?php | ||
|
||
namespace LaravelDoctrineTest\ORM\Assets\Extensions; | ||
|
||
use Doctrine\Common\EventManager; | ||
use Doctrine\ORM\EntityManagerInterface; | ||
use LaravelDoctrine\ORM\Extensions\Extension; | ||
|
||
class ExtensionMock2 implements Extension | ||
{ | ||
public function addSubscribers(EventManager $manager, EntityManagerInterface $em): void | ||
{ | ||
} | ||
|
||
/** | ||
* @return mixed[] | ||
*/ | ||
public function getFilters(): array | ||
{ | ||
return []; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
<?php | ||
|
||
namespace LaravelDoctrineTest\ORM\Assets\Extensions; | ||
|
||
use Doctrine\Common\EventManager; | ||
use Doctrine\ORM\EntityManagerInterface; | ||
use LaravelDoctrine\ORM\Extensions\Extension; | ||
|
||
class ExtensionWithFiltersMock implements Extension | ||
{ | ||
public function addSubscribers(EventManager $manager, EntityManagerInterface $em): void | ||
{ | ||
} | ||
|
||
/** | ||
* @return mixed[] | ||
*/ | ||
public function getFilters(): array | ||
{ | ||
return [ | ||
'filter' => 'FilterMock', | ||
'filter2' => 'FilterMock' | ||
]; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters