About 32 results: "php method_exists repo:propelorm/Propel2"
Page 1 of 2
Filter Results
Sources
Languages
Filter Results
Try Search On
NestedSetBehaviorTest.php in Propel2 git://github.com/propelorm/Propel2.git | 55 lines | PHP
  1.         $this->assertEquals(count($table9->getColumns()), 5, 'nested_set adds three column by default');
  2.         $this->assertTrue(method_exists('\Propel\Tests\Bookstore\Behavior\Table9', 'getTreeLeft'), 'nested_set adds a tree_left column by default');
  3.         $this->assertTrue(method_exists('\Propel\Tests\Bookstore\Behavior\Table9', 'getLeftValue'), 'nested_set maps the left_value getter with the tree_left column');
  4.         $this->assertTrue(method_exists('\Propel\Tests\Bookstore\Behavior\Table9', 'getTreeRight'), 'nested_set adds a tree_right column by default');
  5.         $this->assertTrue(method_exists('\Propel\Tests\Bookstore\Behavior\Table9', 'getRightValue'), 'nested_set maps the right_value getter with the tree_right column');
  6.         $this->assertTrue(method_exists('\Propel\Tests\Bookstore\Behavior\Table9', 'getTreeLevel'), 'nested_set adds a tree_level column by default');
  7.         $this->assertTrue(method_exists('\Propel\Tests\Bookstore\Behavior\Table9', 'getLevel'), 'nested_set maps the level getter with the tree_level column');
  8.         $this->assertFalse(method_exists('\Propel\Tests\Bookstore\Behavior\Table9', 'getTreeScope'), 'nested_set does not add a tree_scope column by default');
  9.         $this->assertFalse(method_exists('\Propel\Tests\Bookstore\Behavior\Table9', 'getScopeValue'), 'nested_set does not map the scope_value getter with the tree_scope column by default');
  10. 
                        
  11.         $this->assertEquals(count($table10->getColumns()), 6, 'nested_set does not add columns when they already exist');
  12.         $this->assertTrue(method_exists('\Propel\Tests\Bookstore\Behavior\Table10', 'getLeftValue'), 'nested_set maps the left_value getter with the tree_left column');
  13.         $this->assertTrue(method_exists('\Propel\Tests\Bookstore\Behavior\Table10', 'getRightValue'), 'nested_set maps the right_value getter with the tree_right column');
  14.         $this->assertTrue(method_exists('\Propel\Tests\Bookstore\Behavior\Table10', 'getLevel'), 'nested_set maps the level getter with the tree_level column');
  15.         $this->assertTrue(method_exists('\Propel\Tests\Bookstore\Behavior\Table10', 'getScopeValue'), 'nested_set maps the scope_value getter with the tree_scope column when the use_scope parameter is true');


QueryBuilderTest.php in Propel2 git://github.com/propelorm/Propel2.git | 1129 lines | PHP
  1.             $filterMethod = 'filterBy' . $colName;
  2.             $this->assertTrue(method_exists('\Propel\Tests\Bookstore\BookQuery', $filterMethod), 'QueryBuilder adds filterByColumn() methods for every column');
  3.     {
  4.         $this->assertTrue(method_exists('\Propel\Tests\Bookstore\BookQuery', 'filterByAuthor'), 'QueryBuilder adds filterByFk() methods');
  5.         $this->assertTrue(method_exists('\Propel\Tests\Bookstore\BookQuery', 'filterByPublisher'), 'QueryBuilder adds filterByFk() methods for all fkeys');
  6. 
                        
  7.         $this->assertTrue(method_exists('\Propel\Tests\Bookstore\EssayQuery', 'filterByAuthorRelatedByFirstAuthor'), 'QueryBuilder adds filterByFk() methods for several fkeys on the same table');
  8.         $this->assertTrue(method_exists('\Propel\Tests\Bookstore\EssayQuery', 'filterByAuthorRelatedBySecondAuthor'), 'QueryBuilder adds filterByFk() methods for several fkeys on the same table');
  9.     }
  10.     {
  11.         $this->assertTrue(method_exists('\Propel\Tests\Bookstore\BookQuery', 'filterByReview'), 'QueryBuilder adds filterByRefFk() methods');
  12.         $this->assertTrue(method_exists('\Propel\Tests\Bookstore\BookQuery', 'filterByMedia'), 'QueryBuilder adds filterByRefFk() methods for all fkeys');
  13.     {
  14.         $this->assertTrue(method_exists('\Propel\Tests\Bookstore\BookQuery', 'filterByBookClubList'), 'Generated query handles filterByCrossRefFK() for many-to-many relationships');
  15.         $this->assertFalse(method_exists('\Propel\Tests\Bookstore\BookQuery', 'filterByBook'), 'Generated query handles filterByCrossRefFK() for many-to-many relationships');



SluggableBehaviorTest.php in Propel2 git://github.com/propelorm/Propel2.git | 306 lines | PHP
  1.         $this->assertEquals(count($table13->getColumns()), 3, 'Sluggable adds one columns by default');
  2.         $this->assertTrue(method_exists('\Propel\Tests\Bookstore\Behavior\Table13', 'getSlug'), 'Sluggable adds a slug column by default');
  3.         $this->assertEquals(count($table14->getColumns()), 3, 'Sluggable does not add a column when it already exists');
  4.         $this->assertTrue(method_exists('\Propel\Tests\Bookstore\Behavior\Table14', 'getUrl'), 'Sluggable allows customization of slug_column name');
  5.         $this->assertTrue(method_exists('\Propel\Tests\Bookstore\Behavior\Table14', 'getSlug'), 'Sluggable adds a standard getter for the slug column');
  6.     }
  7.     {
  8.         $this->assertTrue(method_exists('\Propel\Tests\Bookstore\Behavior\Table13', 'getSlug'), 'Sluggable adds a getter for the slug column');
  9.         $this->assertEquals('foo', $t->getSlug(), 'getSlug() returns the object slug');
  10.         $this->assertTrue(method_exists('\Propel\Tests\Bookstore\Behavior\Table14', 'getSlug'), 'Sluggable adds a getter for the slug column, even if the column does not have the default name');
  11.     {
  12.         $this->assertTrue(method_exists('\Propel\Tests\Bookstore\Behavior\Table13', 'setSlug'), 'Sluggable adds a setter for the slug column');
  13.     {
  14.         $this->assertTrue(method_exists('\Propel\Tests\Bookstore\Behavior\Table13Query', 'findOneBySlug'), 'The generated query provides a findOneBySlug() method');
  15.         $this->assertTrue(method_exists('\Propel\Tests\Bookstore\Behavior\Table14Query', 'findOneBySlug'), 'The generated query provides a findOneBySlug() method even if the slug column doesnt have the default name');















Back to Top