vendor/robmorgan/phinx/tests/Phinx/Db/Adapter/MysqlAdapterTest.php 1 location
|
@@ 99-108 (lines=10) @@
|
| 96 |
|
$this->assertInstanceOf('\PDO', $this->adapter->getConnection()); |
| 97 |
|
} |
| 98 |
|
|
| 99 |
|
public function testCreatingTheSchemaTableOnConnect() |
| 100 |
|
{ |
| 101 |
|
$this->adapter->connect(); |
| 102 |
|
$this->assertTrue($this->adapter->hasTable($this->adapter->getSchemaTableName())); |
| 103 |
|
$this->adapter->dropTable($this->adapter->getSchemaTableName()); |
| 104 |
|
$this->assertFalse($this->adapter->hasTable($this->adapter->getSchemaTableName())); |
| 105 |
|
$this->adapter->disconnect(); |
| 106 |
|
$this->adapter->connect(); |
| 107 |
|
$this->assertTrue($this->adapter->hasTable($this->adapter->getSchemaTableName())); |
| 108 |
|
} |
| 109 |
|
|
| 110 |
|
public function testSchemaTableIsCreatedWithPrimaryKey() |
| 111 |
|
{ |
vendor/robmorgan/phinx/tests/Phinx/Db/Adapter/SQLiteAdapterTest.php 1 location
|
@@ 53-62 (lines=10) @@
|
| 50 |
|
$this->assertTrue(true, 'Transaction query succeeded'); |
| 51 |
|
} |
| 52 |
|
|
| 53 |
|
public function testCreatingTheSchemaTableOnConnect() |
| 54 |
|
{ |
| 55 |
|
$this->adapter->connect(); |
| 56 |
|
$this->assertTrue($this->adapter->hasTable($this->adapter->getSchemaTableName())); |
| 57 |
|
$this->adapter->dropTable($this->adapter->getSchemaTableName()); |
| 58 |
|
$this->assertFalse($this->adapter->hasTable($this->adapter->getSchemaTableName())); |
| 59 |
|
$this->adapter->disconnect(); |
| 60 |
|
$this->adapter->connect(); |
| 61 |
|
$this->assertTrue($this->adapter->hasTable($this->adapter->getSchemaTableName())); |
| 62 |
|
} |
| 63 |
|
|
| 64 |
|
public function testSchemaTableIsCreatedWithPrimaryKey() |
| 65 |
|
{ |
vendor/robmorgan/phinx/tests/Phinx/Db/Adapter/SqlServerAdapterTest.php 1 location
|
@@ 80-89 (lines=10) @@
|
| 77 |
|
} |
| 78 |
|
} |
| 79 |
|
|
| 80 |
|
public function testCreatingTheSchemaTableOnConnect() |
| 81 |
|
{ |
| 82 |
|
$this->adapter->connect(); |
| 83 |
|
$this->assertTrue($this->adapter->hasTable($this->adapter->getSchemaTableName())); |
| 84 |
|
$this->adapter->dropTable($this->adapter->getSchemaTableName()); |
| 85 |
|
$this->assertFalse($this->adapter->hasTable($this->adapter->getSchemaTableName())); |
| 86 |
|
$this->adapter->disconnect(); |
| 87 |
|
$this->adapter->connect(); |
| 88 |
|
$this->assertTrue($this->adapter->hasTable($this->adapter->getSchemaTableName())); |
| 89 |
|
} |
| 90 |
|
|
| 91 |
|
public function testSchemaTableIsCreatedWithPrimaryKey() |
| 92 |
|
{ |
vendor/robmorgan/phinx/tests/Phinx/Db/Adapter/PostgresAdapterTest.php 1 location
|
@@ 103-112 (lines=10) @@
|
| 100 |
|
} |
| 101 |
|
} |
| 102 |
|
|
| 103 |
|
public function testCreatingTheSchemaTableOnConnect() |
| 104 |
|
{ |
| 105 |
|
$this->adapter->connect(); |
| 106 |
|
$this->assertTrue($this->adapter->hasTable($this->adapter->getSchemaTableName())); |
| 107 |
|
$this->adapter->dropTable($this->adapter->getSchemaTableName()); |
| 108 |
|
$this->assertFalse($this->adapter->hasTable($this->adapter->getSchemaTableName())); |
| 109 |
|
$this->adapter->disconnect(); |
| 110 |
|
$this->adapter->connect(); |
| 111 |
|
$this->assertTrue($this->adapter->hasTable($this->adapter->getSchemaTableName())); |
| 112 |
|
} |
| 113 |
|
|
| 114 |
|
public function testSchemaTableIsCreatedWithPrimaryKey() |
| 115 |
|
{ |