File tree Expand file tree Collapse file tree 1 file changed +7
-8
lines changed Expand file tree Collapse file tree 1 file changed +7
-8
lines changed Original file line number Diff line number Diff line change @@ -34,19 +34,18 @@ which makes all of this quite easy::
34
34
35
35
public function setUp()
36
36
{
37
- $kernel = static::createKernel();
38
- $kernel->boot();
39
- $this->em = $kernel->getContainer()->get('doctrine.orm.entity_manager');
37
+ static:: $kernel = static::createKernel();
38
+ static:: $kernel->boot();
39
+ $this->em = static:: $kernel->getContainer()->get('doctrine.orm.entity_manager');
40
40
}
41
41
42
- public function testProductByCategoryName ()
42
+ public function testSearchByCategoryName ()
43
43
{
44
- $results = $this->em
44
+ $products = $this->em
45
45
->getRepository('AcmeStoreBundle:Product')
46
- ->searchProductsByNameQuery('foo')
47
- ->getResult()
46
+ ->searchByCategoryName('foo')
48
47
;
49
48
50
- $this->assertCount(1, $results );
49
+ $this->assertCount(1, $products );
51
50
}
52
51
}
You can’t perform that action at this time.
0 commit comments