Google\Cloud\Tests\Snippets\Datastore\EntityTest::testExcludedProperties PHP Method

testExcludedProperties() public method

    public function testExcludedProperties()
    {
        $snippet = $this->snippetFromMethod(Entity::class, 'excludedProperties');
        $snippet->addLocal('entity', $this->entity);
        $exclude = ['birthDate'];
        $this->entity->setExcludeFromIndexes($exclude);
        $res = $snippet->invoke('excludedFromIndexes');
        $this->assertEquals($exclude, $res->returnVal());
    }