Kraken\_Unit\Runtime\RuntimeModelTest::testApiIsDestroyed_ReturnsFalse_WhenStateDoesNotMatch PHP Method

testApiIsDestroyed_ReturnsFalse_WhenStateDoesNotMatch() public method

    public function testApiIsDestroyed_ReturnsFalse_WhenStateDoesNotMatch()
    {
        $runtime = $this->createModel();
        $states = [Runtime::STATE_CREATED, Runtime::STATE_STARTED, Runtime::STATE_STOPPED];
        foreach ($states as $state) {
            $runtime->setState($state);
            $this->assertFalse($runtime->isDestroyed());
        }
    }
RuntimeModelTest