Skip to content

Commit

Permalink
refactor: Remove properties
Browse files Browse the repository at this point in the history
  • Loading branch information
yaraslau-kavaliou committed Oct 25, 2023
1 parent 3541639 commit 5b8f4f5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/integration/model/persistence/starsql/ResourceTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -83,15 +83,15 @@ private function createTestProperty(): core_kernel_classes_Property
public function testGetParentClassesWithoutParentNoRecursive()
{
$class = new core_kernel_classes_Class(WidgetRdf::CLASS_URI_WIDGET);
$subClasses = $class->getParentClasses(false);
$subClasses = $class->getParentClasses();

$this->assertCount(0, $subClasses);
}

public function testGetParentClassesWithoutParentRecursively()
{
$class = new core_kernel_classes_Class('http://www.tao.lu/Ontologies/generis.rdf#UserRole');
$ancestors = $class->getParentClasses(false);
$ancestors = $class->getParentClasses();

$this->assertCount(1, $ancestors);
}
Expand All @@ -100,7 +100,7 @@ public function testGetParentClassesWithAParentNoRecursive()
{
$class = new core_kernel_classes_Class(WidgetRdf::CLASS_URI_WIDGET);
$subclass = $class->createSubClass('example', 'comment', 'example.com');
$ancestors = $subclass->getParentClasses(false);
$ancestors = $subclass->getParentClasses();

$this->assertCount(1, $ancestors);
$this->assertEquals(WidgetRdf::CLASS_URI_WIDGET, $ancestors[WidgetRdf::CLASS_URI_WIDGET]->getUri());
Expand Down

0 comments on commit 5b8f4f5

Please sign in to comment.