Example #1
0
 /**
  * @test
  */
 public function insertForTableWithoutUidReturnsZero()
 {
     $this->testingFramework->markTableAsDirty('tx_oelib_test_article_mm');
     self::assertSame(0, Tx_Oelib_Db::insert('tx_oelib_test_article_mm', array('is_dummy_record' => 1)));
 }
Example #2
0
 /**
  * @test
  */
 public function markTableAsDirtyAcceptsCommaSeparatedListOfTableNames()
 {
     $this->subject->markTableAsDirty('tx_oelib_test' . ',' . 'tx_oelib_test_article_mm');
     self::assertSame(array('tx_oelib_test' => 'tx_oelib_test', 'tx_oelib_test_article_mm' => 'tx_oelib_test_article_mm'), $this->subject->getListOfDirtyTables());
 }