About 18 results: "php method_exists repo:mattleff/propel"
Page 1 of 1
Filter Results
Sources
Languages
Filter Results
Try Search On

NestedSetBehaviorTest.php in propel https://github.com/mattleff/propel.git | 48 lines | PHP
  1. 		$this->assertEquals(count($table9->getColumns()), 5, 'nested_set adds three column by default');
  2. 		$this->assertTrue(method_exists('Table9', 'getTreeLeft'), 'nested_set adds a tree_left column by default');
  3. 		$this->assertTrue(method_exists('Table9', 'getLeftValue'), 'nested_set maps the left_value getter with the tree_left column');
  4. 		$this->assertTrue(method_exists('Table9', 'getTreeRight'), 'nested_set adds a tree_right column by default');
  5. 		$this->assertTrue(method_exists('Table9', 'getTreeLevel'), 'nested_set adds a tree_level column by default');
  6. 		$this->assertTrue(method_exists('Table9', 'getLevel'), 'nested_set maps the level getter with the tree_level column');
  7. 		$this->assertFalse(method_exists('Table9', 'getTreeScope'), 'nested_set does not add a tree_scope column by default');
  8. 		$this->assertFalse(method_exists('Table9', 'getScopeValue'), 'nested_set does not map the scope_value getter with the tree_scope column by default');
  9. 
                        
  10. 		$this->assertEquals(count($table10->getColumns()), 6, 'nested_set does not add columns when they already exist');
  11. 		$this->assertTrue(method_exists('Table10', 'getLeftValue'), 'nested_set maps the left_value getter with the tree_left column');
  12. 		$this->assertTrue(method_exists('Table10', 'getRightValue'), 'nested_set maps the right_value getter with the tree_right column');
  13. 		$this->assertTrue(method_exists('Table10', 'getLevel'), 'nested_set maps the level getter with the tree_level column');
  14. 		$this->assertTrue(method_exists('Table10', 'getScopeValue'), 'nested_set maps the scope_value getter with the tree_scope column when the use_scope parameter is true');
  15. 	}



SluggableBehaviorTest.php in propel https://github.com/mattleff/propel.git | 299 lines | PHP
  1. 		$this->assertEquals(count($table13->getColumns()), 3, 'Sluggable adds one columns by default');
  2. 		$this->assertTrue(method_exists('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('Table14', 'getUrl'), 'Sluggable allows customization of slug_column name');
  5. 		$this->assertTrue(method_exists('Table14', 'getSlug'), 'Sluggable adds a standard getter for the slug column');
  6. 	{
  7. 		$this->assertTrue(method_exists('Table13', 'getSlug'), 'Sluggable adds a getter for the slug column');
  8. 		$this->assertEquals('foo', $t->getSlug(), 'getSlug() returns the object slug');
  9. 		$this->assertTrue(method_exists('Table14', 'getSlug'), 'Sluggable adds a getter for the slug column, even if the column does not have the default name');
  10. 	{
  11. 		$this->assertTrue(method_exists('Table13', 'setSlug'), 'Sluggable adds a setter for the slug column');
  12. 		$this->assertEquals('foo', $t->getSlug(), 'setSlug() sets the object slug');
  13. 		$this->assertTrue(method_exists('Table14', 'setSlug'), 'Sluggable adds a setter for the slug column, even if the column does not have the default name');
  14. 	{
  15. 		$this->assertTrue(method_exists('Table13Query', 'findOneBySlug'), 'The generated query provides a findOneBySlug() method');
  16. 		$this->assertTrue(method_exists('Table14Query', 'findOneBySlug'), 'The generated query provides a findOneBySlug() method even if the slug column doesnt have the default name');
  17. 		














Back to Top