Example #1
0
 public function testGetListBuilder()
 {
     $admin = new PostAdmin('sonata.post.admin.post', 'NewsBundle\\Entity\\Post', 'SonataNewsBundle:PostAdmin');
     $this->assertNull($admin->getListBuilder());
     $listBuilder = $this->getMock('Sonata\\AdminBundle\\Builder\\ListBuilderInterface');
     $admin->setListBuilder($listBuilder);
     $this->assertSame($listBuilder, $admin->getListBuilder());
 }