Admin_Action_Index_Delete_Test::testActionPerformWhenNotPushed PHP Method

testActionPerformWhenNotPushed() public method

    public function testActionPerformWhenNotPushed()
    {
        // Expect an exception
        $this->setExpectedException('\\Apple_Actions\\Action_Exception', 'This post has not been pushed to Apple News, cannot delete.');
        $api = $this->prophet->prophesize('\\Push_API\\API');
        $post_id = $this->factory->post->create();
        $action = new Delete($this->settings, $post_id);
        $action->set_api($api->reveal());
        $action->perform();
    }