DataSift\Storyplayer\PlayerLib\Action_LoggerTest::testCanCallCloseAllOpenActionsWheNoActionsOpen PHP Method

testCanCallCloseAllOpenActionsWheNoActionsOpen() public method

    public function testCanCallCloseAllOpenActionsWheNoActionsOpen()
    {
        // ----------------------------------------------------------------
        // setup your test
        // our mock DI container
        $i = new Injectables();
        $i->dataFormatter = new DataFormatter();
        $i->dataFormatter->setIsVerbose(true);
        // and, our test subject
        $obj = new Action_Logger($i);
        // ----------------------------------------------------------------
        // perform the change
        $obj->closeAllOpenActions();
        // ----------------------------------------------------------------
        // test the results
        $action = $obj->getOpenAction();
        $this->assertNull($action);
        // all done
        Mockery::close();
    }