Kraken\_Unit\Runtime\_Case\RuntimeCase::testApiGetLoop_CallsModelMethod PHP Метод

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

    public function testApiGetLoop_CallsModelMethod()
    {
        $test = $this->getTest();
        $loop = $test->getMock(Loop::class, [], [], '', false);
        $model = $test->getMock(RuntimeModel::class, [], [], '', false);
        $model->expects($test->once())->method('getLoop')->will($test->returnValue($loop));
        $runtime = $this->createRuntime();
        $test->setProtectedProperty($runtime, 'model', $model);
        $test->assertSame($loop, $runtime->getLoop());
    }