public function testNonExistentMethod() { $testEntity = TestEntity::createTestEntity(); $testEntity->foobar(); }
public function testUpdate() { $testEntity = TestEntity::createTestEntity(); self::$entityManager->persist($testEntity); self::$entityManager->flush(); $this->assertNotEquals('fubar', $testEntity->getName()); $testEntity->setName('fubar'); TestEntityService::update(); $entities = self::$entityManager->createQuery('SELECT e FROM Rexmac\\Zyndax\\Doctrine\\Entity\\TestEntity e')->execute(); $this->assertEquals('fubar', $entities[0]->getName()); }