public function testArchiveSuccess() { /** @var Item06|ActiveWorkflowBehavior|Item06Behavior $post */ $post = new Item06(); verify('post is inserted in workflow', $post->enterWorkflow())->true(); verify('send post to correction', $post->sendToStatus('Item06Workflow/correction'))->true(); $post->markAsCorrected(); verify('post has been corrected, it can be published', $post->sendToStatus('Item06Workflow/published'))->true(); expect('fail to send to archive', $post->sendToStatus('Item06Workflow/archive'))->false(); $post->markAsCandidateForArchive(); expect('post is sent to archive', $post->sendToStatus('Item06Workflow/archive'))->true(); }