Advertisement
Guest User

Untitled

a guest
Apr 23rd, 2014
42
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.65 KB | None | 0 0
  1. /**
  2.      * @todo   Implement Save (edit)
  3.      */
  4.     public function testSalveUpdate()
  5.     {
  6.         $this->testSalveInsert();
  7.         $resources = $this->getEntityManager()
  8.                           ->getRepository('Base\Entity\Fabrica')
  9.                           ->findAll();
  10.        
  11.         $this->assertEquals(1, count($resources));
  12.         unset($data);
  13.         $data = $this->getDadosEdit();
  14.  
  15.         $result = $this->getService('Fabrica\Service\Fabrica')->save($data);
  16.         $this->assertNotNull($result->getId());
  17.         $this->assertEquals(1, count($result));
  18. //         $this->assertEquals('Alisson', $result->getApelido());
  19.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement