Phalcon\Test\Unit\Mvc\ModelTest::testCamelCaseRelation PHP Méthode

testCamelCaseRelation() public méthode

    public function testCamelCaseRelation()
    {
        $this->specify("CamelCase relation calls should be the same cache", function () {
            $this->modelsManager->registerNamespaceAlias('AlbumORama', 'Phalcon\\Test\\Models\\AlbumORama');
            $album = Albums::findFirst();
            $album->artist->name = 'NotArtist';
            expect($album->artist->name)->equals($album->Artist->name);
        });
    }