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

testManyToOneVirtualField() public method

    public function testManyToOneVirtualField()
    {
        $testItemCategory = $this->getObjects()->getDefinition('test/itemCategory');
        $field = $testItemCategory->getField('items');
        $this->assertInstanceOf('Jarves\\Configuration\\Field', $field);
        $this->assertEquals('items', $field->getId());
        $this->assertTrue($field->isVirtual());
        $this->assertEquals('Auto Object Relation (test/itemCategory)', $field->getLabel());
    }