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


PHP FunctionalTester::seeInShellOutput方法代码示例

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


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

示例1: 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

示例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('see an error if the workflow to read does not exist');
$I->runArtisan('workflow:read unknown');
$I->seeInShellOutput('The workflow [Unknown] does not exist.');
开发者ID:haoljp,项目名称:Workflow,代码行数:6,代码来源:DisplayErrorIfWorkflowNotExistsDuringReadCept.php

示例7: FunctionalTester

<?php

$I = new FunctionalTester($scenario);
$I->wantTo('create a new user from the command line');
$I->runShellCommand('php artisan create:user superadmin@email.com "Super Admin" --admin');
$I->seeInShellOutput('User created');
$I->seeInDatabase('users', ['email' => 'superadmin@email.com', 'rights' => '["admin"]']);
开发者ID:scriptotek,项目名称:ub-baser,代码行数:7,代码来源:CreateUserFromConsoleCept.php


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