Example #1
0
 public function testParameters()
 {
     $table11 = Table11Peer::getTableMap();
     $this->assertEquals(count($table11->getColumns()), 3, 'Sortable adds one columns by default');
     $this->assertTrue(method_exists('\\Propel\\Tests\\Bookstore\\Behavior\\Table11', 'getRank'), 'Sortable adds a rank column by default');
     $table12 = Table12Peer::getTableMap();
     $this->assertEquals(count($table12->getColumns()), 4, 'Sortable does not add a column when it already exists');
     $this->assertTrue(method_exists('\\Propel\\Tests\\Bookstore\\Behavior\\Table12', 'getPosition'), 'Sortable allows customization of rank_column name');
 }