FluidTYPO3\Flux\Tests\Unit\Backend\TceMainTest::testResolveRecordUid PHP Метод

testResolveRecordUid() публичный Метод

public testResolveRecordUid ( mixed $input, mixed $handlerInput, integer $expectedOutput )
$input mixed
$handlerInput mixed
$expectedOutput integer
    public function testResolveRecordUid($input, $handlerInput, $expectedOutput)
    {
        $instance = $this->getMock($this->createInstanceClassName(), array('dummy'), array(), '', TRUE);
        $dataHandler = new DataHandler();
        if (NULL !== $handlerInput) {
            $dataHandler->substNEWwithIDs[$input] = $handlerInput;
        }
        $result = $this->callInaccessibleMethod($instance, 'resolveRecordUid', $input, $dataHandler);
        $this->assertTrue($expectedOutput === $result, 'Resolved record UID was not expected value');
    }