public function testWithAliasAddsSelectColumnsOfMainTable()
 {
     $c = new TestableModelCriteria('bookstore', 'Propel\\Tests\\Bookstore\\Book');
     $c->setModelAlias('b', true);
     $c->join('b.Author a');
     $c->with('a');
     $expectedColumns = array('b.id', 'b.title', 'b.isbn', 'b.price', 'b.publisher_id', 'b.author_id', 'a.id', 'a.first_name', 'a.last_name', 'a.email', 'a.age');
     $this->assertEquals($expectedColumns, $c->getSelectColumns(), 'with() adds the columns of the main table with an alias if required');
 }
 public function testWithAliasAddsSelectColumnsOfMainTable()
 {
     $c = new TestableModelCriteria('bookstore', 'Propel\\Tests\\Bookstore\\Book');
     $c->setModelAlias('b', true);
     $c->join('b.Author a');
     $c->with('a');
     $expectedColumns = array('b.ID', 'b.TITLE', 'b.ISBN', 'b.PRICE', 'b.PUBLISHER_ID', 'b.AUTHOR_ID', 'a.ID', 'a.FIRST_NAME', 'a.LAST_NAME', 'a.EMAIL', 'a.AGE');
     $this->assertEquals($expectedColumns, $c->getSelectColumns(), 'with() adds the columns of the main table with an alias if required');
 }