Kraken\_Unit\Console\Client\ClientTest::testApiGetType_ReturnsType PHP Method

testApiGetType_ReturnsType() public method

    public function testApiGetType_ReturnsType()
    {
        $test = $this->getTest();
        $result = 'RuntimeType';
        $mock = $test->getMock(Core::class, ['getType'], [], '', false);
        $mock->expects($test->once())->method('getType')->will($test->returnValue($result));
        $runtime = $this->createRuntime(['getCore']);
        $runtime->expects($test->once())->method('getCore')->will($test->returnValue($mock));
        $test->assertSame($result, $runtime->getType());
    }