GraphAware\Neo4j\Client\Tests\GetLabelsProcedureTest::testCanGetLabels PHP Method

testCanGetLabels() public method

public testCanGetLabels ( )
    public function testCanGetLabels()
    {
        $this->emptyDb();
        $this->client->run("CREATE (:Label1), (:Label2), (:Label3)");
        $result = $this->client->getLabels();
        $this->assertCount(3, $result);
        foreach ($result as $label) {
            $this->assertInstanceOf(Label::class, $label);
        }
    }
GetLabelsProcedureTest