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

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

    public function testApiSetCore_CallsModelMethod()
    {
        $test = $this->getTest();
        $core = $test->getMock(Core::class, [], [], '', false);
        $model = $test->getMock(RuntimeModel::class, [], [], '', false);
        $model->expects($test->once())->method('setCore')->with($core);
        $runtime = $this->createRuntime();
        $test->setProtectedProperty($runtime, 'model', $model);
        $runtime->setCore($core);
    }