本文整理汇总了PHP中FunctionalTester::seeInWorkflows方法的典型用法代码示例。如果您正苦于以下问题:PHP FunctionalTester::seeInWorkflows方法的具体用法?PHP FunctionalTester::seeInWorkflows怎么用?PHP FunctionalTester::seeInWorkflows使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类FunctionalTester
的用法示例。
在下文中一共展示了FunctionalTester::seeInWorkflows方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: FunctionalTester
<?php
$I = new FunctionalTester($scenario);
$I->wantTo('append the newly created workflow if another one exists');
$I->runArtisan('workflow:create updateUser -a Notifier');
$I->runArtisan('workflow:create deleteUser -a Logger');
$I->seeInJob('UpdateUserJob', 'Append/UpdateUserJob.stub');
$I->seeInRequest('UpdateUserRequest', 'Append/UpdateUserRequest.stub');
$I->seeInPipe('UpdateUser/Notifier', 'Append/Notifier.stub');
$I->seeInJob('DeleteUserJob', 'Append/DeleteUserJob.stub');
$I->seeInRequest('DeleteUserRequest', 'Append/DeleteUserRequest.stub');
$I->seeInPipe('DeleteUser/Logger', 'Append/Logger.stub');
$I->seeInWorkflows('Append/workflows.stub');
$I->clearWorkflow('UpdateUser');
$I->clearWorkflow('DeleteUser');
示例2: FunctionalTester
<?php
$I = new FunctionalTester($scenario);
$I->wantTo('delete a workflow keeping its files');
$I->runArtisan('workflow:create publishPost -a Notifier');
$I->runArtisan('workflow:create banUser -a Logger');
$I->runArtisan('workflow:delete banUser');
$I->seeJob('BanUserJob');
$I->seeRequest('BanUserRequest');
$I->seePipe('BanUser/Logger');
$I->seeJob('PublishPostJob');
$I->seeRequest('PublishPostRequest');
$I->seePipe('PublishPost/Notifier');
$I->seeInWorkflows('Delete/workflows.stub');
$I->seeInShellOutput('Workflow deleted successfully.');
$I->clearWorkflow('BanUser');
示例3: FunctionalTester
<?php
$I = new FunctionalTester($scenario);
$I->wantTo('update an existing workflow');
$I->runArtisan('workflow:create loginUser -a Notifier');
$I->runArtisan('workflow:create registerUser -a "Notifier Logger"');
$I->runArtisan('workflow:update registerUser -a Buzzer -d Notifier');
$I->seePipe('LoginUser/Notifier');
$I->seePipe('RegisterUser/Notifier');
// because --force is not set
$I->seeInPipe('RegisterUser/Buzzer', 'Update/Buzzer.stub');
$I->seePipe('RegisterUser/Logger');
$I->seeInWorkflows('Update/workflows.stub');
$I->seeInShellOutput('Workflow updated successfully.');
$I->clearWorkflow('LoginUser');
$I->clearWorkflow('RegisterUser');
示例4: FunctionalTester
<?php
$I = new FunctionalTester($scenario);
$I->wantTo('create an unguarded workflow');
$I->runArtisan('workflow:create IndexPosts -u');
$I->dontSeeRequest('IndexPostsRequest');
$I->seeInJob('IndexPostsJob', 'Unguarded/IndexPostsJob.stub');
$I->seeInShellOutput('Job created successfully.');
$I->dontSeeInShellOutput('Request created successfully.');
$I->seeInWorkflows('Unguarded/workflows.stub');
$I->seeInShellOutput('Workflow created successfully.');
$I->clearWorkflow('IndexPosts');
示例5: FunctionalTester
<?php
$I = new FunctionalTester($scenario);
$I->wantTo('create a workflow with many pipes');
$I->runArtisan('workflow:create registerUser -a "Notifier Logger"');
$I->seeInJob('RegisterUserJob', 'ManyPipes/RegisterUserJob.stub');
$I->seeInRequest('RegisterUserRequest', 'ManyPipes/RegisterUserRequest.stub');
$I->seeInPipe('RegisterUser/Notifier', 'ManyPipes/Notifier.stub');
$I->seeInPipe('RegisterUser/Logger', 'ManyPipes/Logger.stub');
$I->seeInWorkflows('ManyPipes/workflows.stub');
$I->seeInShellOutput('Job created successfully.');
$I->seeInShellOutput('Request created successfully.');
$I->seeInShellOutput('Pipe created successfully.');
$I->seeInShellOutput('Workflow created successfully.');
$I->clearWorkflow('RegisterUser');
示例6: FunctionalTester
<?php
$I = new FunctionalTester($scenario);
$I->wantTo('create a workflow with no pipes');
$I->runArtisan('workflow:create LoginUser');
$I->seeInJob('LoginUserJob', 'NoPipes/LoginUserJob.stub');
$I->seeInRequest('LoginUserRequest', 'NoPipes/LoginUserRequest.stub');
$I->seeInWorkflows('NoPipes/workflows.stub');
$I->seeInShellOutput('Job created successfully.');
$I->seeInShellOutput('Request created successfully.');
$I->dontSeeInShellOutput('Pipe created successfully.');
$I->seeInShellOutput('Workflow created successfully.');
$I->clearWorkflow('LoginUser');
示例7: FunctionalTester
<?php
$I = new FunctionalTester($scenario);
$I->wantTo('delete the detached pipes during an update');
$I->runArtisan('workflow:create registerUser -a "Notifier Logger"');
$I->runArtisan('workflow:update registerUser -a Buzzer -d Notifier --force');
$I->dontSeePipe('RegisterUser/Notifier');
$I->seePipe('RegisterUser/Buzzer');
$I->seePipe('RegisterUser/Logger');
$I->seeInWorkflows('DeleteDetached/workflows.stub');
$I->seeInShellOutput('Workflow updated successfully.');
$I->clearWorkflow('RegisterUser');