Jarves\Tests\Service\Object\RelationTest::testPropelRefName PHP Method

testPropelRefName() public method

public testPropelRefName ( )
    public function testPropelRefName()
    {
        $reflection = new \ReflectionClass('Test\\Model\\Item');
        $this->assertTrue($reflection->hasMethod('getCategories'), 'Item has getCategories');
        $this->assertTrue($reflection->hasMethod('getOneCategory'), 'Item has getOneCategory');
        $reflection = new \ReflectionClass('Test\\Model\\ItemCategory');
        $this->assertTrue($reflection->hasMethod('getItems'));
        //<objectRefRelationName>Items</objectRefRelationName>
        $this->assertTrue($reflection->hasMethod('getCategoryCrossItems'));
        //<objectRefRelationName>CategoryCrossItems</objectRefRelationName>
    }