public function testInsertAtBottom() { $t = new Table11(); $t->setTitle('new'); $t->insertAtBottom(); $this->assertEquals(5, $t->getRank(), 'insertAtBottom() sets the position to the last'); $this->assertTrue($t->isNew(), 'insertAtBottom() doesn\'t save the object'); $t->save(); $expected = array(1 => 'row1', 2 => 'row2', 3 => 'row3', 4 => 'row4', 5 => 'new'); $this->assertEquals($expected, $this->getFixturesArray(), 'insertAtBottom() does not shift the entire suite'); }