public function testInsertData() { $testDb = new TestLiteDb(); $testDb->createPlainTables(array('perm_upload')); $testDb->insertData(array('perm_upload')); $tag1 = $testDb->getDbManager()->getSingleRow('select perm from perm_upload where perm_upload_pk=1'); assertThat($tag1, hasKey('perm')); assertThat($tag1['perm'], is(10)); }
protected function setUp() { $this->testDb = new TestPgDb(); $this->dbManager = $this->testDb->getDbManager(); $this->assertCountBefore = \Hamcrest\MatcherAssert::getCount(); }