Ejemplo n.º 1
0
 public function testExecute()
 {
     $this->createTable('foo');
     $tableExists = new TableExistsCommand();
     $result = $tableExists->setConnection($this->connection)->setEventDispatcher($this->getMock('Symfony\\Component\\EventDispatcher\\EventDispatcher'))->setTable(new Table('foo'))->execute();
     $this->assertTrue($result);
 }
Ejemplo n.º 2
0
 protected function tableExists($name)
 {
     $tableExists = new TableExistsCommand();
     return $tableExists->setConnection($this->connection)->setEventDispatcher($this->getMock('Symfony\\Component\\EventDispatcher\\EventDispatcher'))->setTable(new Table($name))->execute();
 }