ApaiIO\Test\Operations\Types\LookupTest::testSetIdTypeAffectsSearchIndex PHP Метод

testSetIdTypeAffectsSearchIndex() публичный метод

public testSetIdTypeAffectsSearchIndex ( string $idType, string | null $expectedSearchIndex )
$idType string
$expectedSearchIndex string | null
    public function testSetIdTypeAffectsSearchIndex($idType, $expectedSearchIndex)
    {
        $lookup = new Lookup();
        $lookup->setIdType($idType);
        $parameters = $lookup->getOperationParameter();
        if ($expectedSearchIndex === null) {
            $this->assertArrayNotHasKey('SearchIndex', $parameters);
        } else {
            $this->assertSame($expectedSearchIndex, $parameters['SearchIndex']);
        }
    }