常用方法
常用方法
常用方法
常用方法
/** * @covers Sonata\AdminBundle\Admin\Admin::setUniqid * @covers Sonata\AdminBundle\Admin\Admin::getUniqid */ public function testUniqid() { $admin = new PostAdmin('sonata.post.admin.post', 'NewsBundle\\Entity\\Post', 'SonataNewsBundle:PostAdmin'); $uniqid = uniqid(); $admin->setUniqid($uniqid); $this->assertSame($uniqid, $admin->getUniqid()); }