public function testExecute() { $this->_adapter->setTableSchemaExist(true); $this->object->setDirectoryOfMigrations('/tmp'); $expected = FIXTURES_PATH . '/db/schema.txt'; $actual = $this->object->execute(array()); $this->assertFileExists('/tmp/schema.txt'); $this->assertFileEquals($expected, '/tmp/schema.txt'); }
/** * test db schema creation */ public function test_db_schema_creation() { $schema = new Task_Db_Schema($this->adapter); $schema->set_framework($this->framework); $schema->execute(array()); $this->assertEquals(true, file_exists($this->db_dir . '/schema.txt')); }