當前位置: 首頁>>代碼示例>>PHP>>正文


PHP FunctionalTester::seeInWorkflows方法代碼示例

本文整理匯總了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');
開發者ID:haoljp,項目名稱:Workflow,代碼行數:15,代碼來源:AppendCreatedWorkflowIfAnotherOneExistsCept.php

示例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');
開發者ID:haoljp,項目名稱:Workflow,代碼行數:16,代碼來源:DeleteWorkflowButSpareFilesCept.php

示例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');
開發者ID:haoljp,項目名稱:Workflow,代碼行數:16,代碼來源:UpdateExistingWorkflowCept.php

示例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');
開發者ID:haoljp,項目名稱:Workflow,代碼行數:12,代碼來源:CreateUnguardedWorkflowCept.php

示例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');
開發者ID:haoljp,項目名稱:Workflow,代碼行數:15,代碼來源:CreateWorkflowWithManyPipesCept.php

示例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');
開發者ID:haoljp,項目名稱:Workflow,代碼行數:13,代碼來源:CreateWorkflowWithNoPipesCept.php

示例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');
開發者ID:haoljp,項目名稱:Workflow,代碼行數:12,代碼來源:DeleteDetachedPipesDuringUpdateIfForcedCept.php


注:本文中的FunctionalTester::seeInWorkflows方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。