当前位置: 首页>>代码示例>>PHP>>正文


PHP FunctionalTester::clearWorkflow方法代码示例

本文整理汇总了PHP中FunctionalTester::clearWorkflow方法的典型用法代码示例。如果您正苦于以下问题:PHP FunctionalTester::clearWorkflow方法的具体用法?PHP FunctionalTester::clearWorkflow怎么用?PHP FunctionalTester::clearWorkflow使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在FunctionalTester的用法示例。


在下文中一共展示了FunctionalTester::clearWorkflow方法的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: 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');
开发者ID:haoljp,项目名称:Workflow,代码行数:16,代码来源:DeleteWorkflowButSpareFilesCept.php

示例2: 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');
开发者ID:haoljp,项目名称:Workflow,代码行数:15,代码来源:AppendCreatedWorkflowIfAnotherOneExistsCept.php

示例3: FunctionalTester

<?php

$I = new FunctionalTester($scenario);
$I->wantTo('see an error if the workflow to create already exists');
$I->runArtisan('workflow:create registerUser');
$I->seeInShellOutput('Workflow created successfully.');
$I->runArtisan('workflow:create registerUser');
$I->seeInShellOutput('The workflow [RegisterUser] already exists.');
$I->clearWorkflow('RegisterUser');
开发者ID:haoljp,项目名称:Workflow,代码行数:9,代码来源:DisplayErrorIfWorkflowAlreadyExistsCept.php

示例4: 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');
开发者ID:haoljp,项目名称:Workflow,代码行数:16,代码来源:UpdateExistingWorkflowCept.php

示例5: 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');
开发者ID:haoljp,项目名称:Workflow,代码行数:12,代码来源:CreateUnguardedWorkflowCept.php

示例6: FunctionalTester

<?php

$I = new FunctionalTester($scenario);
$I->wantTo('see a workflow with many pipes');
$I->runArtisan('workflow:create UpdatePost -a "Logger Buzzer Uploader Composer PipeWithVeryLongName"');
$I->runArtisan('workflow:read UpdatePost');
$I->seeDrawingIs('many.stub');
$I->clearWorkflow('UpdatePost');
开发者ID:haoljp,项目名称:Workflow,代码行数:8,代码来源:ReadWorkflowWithManyPipesCept.php

示例7: 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');
开发者ID:haoljp,项目名称:Workflow,代码行数:13,代码来源:CreateWorkflowWithNoPipesCept.php

示例8: FunctionalTester

<?php

$I = new FunctionalTester($scenario);
$I->wantTo('delete a workflow and its files');
$I->runArtisan('workflow:create publishPost -a Notifier');
$I->runArtisan('workflow:create banUser -a Logger');
$I->runArtisan('workflow:delete banUser -f');
$I->dontSeeJob('BanUserJob');
$I->dontSeeRequest('BanUserRequest');
$I->dontSeePipe('BanUser/Logger');
$I->seeJob('PublishPostJob');
$I->seeRequest('PublishPostRequest');
$I->seePipe('PublishPost/Notifier');
$I->seeInWorkflows('Delete/workflows.stub');
$I->seeInShellOutput('Workflow deleted successfully.');
$I->clearWorkflow('PublishPost');
开发者ID:haoljp,项目名称:Workflow,代码行数:16,代码来源:DeleteWorkflowAndItsFilesCept.php


注:本文中的FunctionalTester::clearWorkflow方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。