public function testStorage() { $user = new ShortUrl_Model_User(); $this->_em->persist($user); $group = new ShortUrl_Model_Group(); $this->_em->persist($group); $url = new ShortUrl_Model_Url(); $url->setShorty('shorty')->setUrl('url')->setCreatedAt()->setCreatedBy($user)->setCreatedFor($group)->store(); $url2 = $this->_em->find('ShortUrl_Model_Url', 1); $this->assertTrue($url === $url2); }
public function testStorage() { $user = new ShortUrl_Model_User(); $this->_em->persist($user); $group = new ShortUrl_Model_Group(); $this->_em->persist($group); $url = new ShortUrl_Model_Url(); $url->setShorty('shorty')->setUrl('url')->setCreatedAt()->setCreatedBy($user)->setCreatedFor($group)->store(); $url2 = $this->_em->find('ShortUrl_Model_Url', 1); $this->markTestIncomplete('Still to implement'); }