/**
  * @expectedException \Propel\Runtime\Exception\PropelException
  */
 public function testInsertAtBottomNoScope()
 {
     $t = new Table12();
     $t->insertAtBottom();
 }
 public function testInsertAtBottomNoScope()
 {
     $t = new Table12();
     $t->setTitle('new');
     $t->insertAtBottom();
     $this->assertEquals(5, $t->getRank(), 'insertAtBottom() sets the position to the last');
     $this->assertTrue($t->isNew(), 'insertAtTop() doesn\'t save the object');
     $t->save();
     $expected = array(1 => 'row7', 2 => 'row8', 3 => 'row9', 4 => 'row10', 5 => 'new');
     $this->assertEquals($expected, $this->getFixturesArrayWithScope(), 'insertAtBottom() does not shift the entire suite');
     $expected = array(1 => 'row1', 2 => 'row2', 3 => 'row3', 4 => 'row4');
     $this->assertEquals($expected, $this->getFixturesArrayWithScope(1), 'insertAtRank() leaves other suites unchanged');
     $expected = array(1 => 'row5', 2 => 'row6');
     $this->assertEquals($expected, $this->getFixturesArrayWithScope(2), 'insertAtRank() leaves other suites unchanged');
 }