1 | <?php |
||
11 | class CollectionFactoryTest extends OrmTestCase |
||
12 | { |
||
13 | /** |
||
14 | * @var \Doctrine\ORM\EntityManager |
||
15 | */ |
||
16 | protected $_em; |
||
17 | |||
18 | /** |
||
19 | * @var CollectionFactory |
||
20 | */ |
||
21 | protected $collectionFactory; |
||
22 | |||
23 | /** |
||
24 | * @var ClassMetadata |
||
25 | */ |
||
26 | protected $classMetadata; |
||
27 | |||
28 | /** |
||
29 | * {@inheritDoc} |
||
30 | */ |
||
31 | protected function setUp() |
||
41 | |||
42 | /** |
||
43 | * @group custom-collections |
||
44 | */ |
||
45 | public function testCollectionFactoryInstantiatesPersistentCollectionIfCollectionTypeIsNotSet() |
||
55 | |||
56 | /** |
||
57 | * @group custom-collections |
||
58 | */ |
||
59 | public function testCollectionFactoryInstantiatesTheRequiredCollection() |
||
71 | |||
72 | /** |
||
73 | * @expectedException \Doctrine\ORM\ORMInvalidArgumentException |
||
74 | * |
||
75 | * @group custom-collections |
||
76 | */ |
||
77 | public function testCollectionFactoryThrowsExceptionIfCollectionTypeIsNotPersistentCollection() |
||
87 | } |
||
88 |