@@ 89-99 (lines=11) @@ | ||
86 | $this->assertEquals(0, $filteredResultByDeletedAt->count()); |
|
87 | } |
|
88 | ||
89 | public function testFindOneBy() |
|
90 | { |
|
91 | $entity = $this->getFlushedMockObject(); |
|
92 | ||
93 | $result = $this->getRepository() |
|
94 | ->findOneBy(['id' => $entity->getId()]); |
|
95 | ||
96 | $this->assertNotNull($result); |
|
97 | $this->assertInstanceOf($this->getRepository()->getClassName(), $result); |
|
98 | $this->assertEquals($entity->getId(), $result->getId()); |
|
99 | } |
|
100 | ||
101 | public function testFind() |
|
102 | { |
|
@@ 101-111 (lines=11) @@ | ||
98 | $this->assertEquals($entity->getId(), $result->getId()); |
|
99 | } |
|
100 | ||
101 | public function testFind() |
|
102 | { |
|
103 | $entity = $this->getFlushedMockObject(); |
|
104 | ||
105 | $result = $this->getRepository() |
|
106 | ->find($entity->getId()); |
|
107 | ||
108 | $this->assertNotNull($result); |
|
109 | $this->assertInstanceOf($this->getRepository()->getClassName(), $result); |
|
110 | $this->assertEquals($entity->getId(), $result->getId()); |
|
111 | } |
|
112 | ||
113 | public function testFindAllRemoved() |
|
114 | { |