本文整理汇总了PHP中FunctionalTester::dontSeeLink方法的典型用法代码示例。如果您正苦于以下问题:PHP FunctionalTester::dontSeeLink方法的具体用法?PHP FunctionalTester::dontSeeLink怎么用?PHP FunctionalTester::dontSeeLink使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类FunctionalTester
的用法示例。
在下文中一共展示了FunctionalTester::dontSeeLink方法的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: viewIssues
/**
* @param FunctionalTester $I
*
* @actor FunctionalTester
*
* @return void
*/
public function viewIssues(FunctionalTester $I)
{
$I->am('Developer User');
$I->expectTo('view issues in projects I am one of the users');
$user = $I->createUser(1, 2);
$admin = $I->createUser(2, 4);
$project1 = $I->createProject(1);
$project2 = $I->createProject(2, [$user]);
$issue1 = $I->createIssue(1, $admin, null, $project1);
$issue2 = $I->createIssue(2, $admin, null, $project2);
$comment1 = $I->createComment(1, $admin, $issue2);
$I->amLoggedAs($user);
$I->amOnAction('HomeController@getIndex');
$I->see($project2->name, '#sidebar .project');
$I->dontSee($project1->name, '#sidebar .project');
$I->click($project2->name);
$I->seeCurrentActionIs('ProjectController@getIndex', ['project' => $project2]);
$I->seeLink($issue2->title);
$I->dontSeeLink($issue1->title);
$I->click($issue2->title);
$I->seeCurrentActionIs('Project\\IssueController@getIndex', ['project' => $project2, 'issue' => $issue2]);
$I->see($comment1->comment, '#comment' . $comment1->id . ' .content');
$I->amOnAction('Project\\IssueController@getNew', ['project' => $project1]);
$I->seeResponseCodeIs(401);
$I->amOnAction('UserController@getIssues');
$I->dontSeeLink($issue2->title);
$I->dontSeeLink($issue1->title);
}
示例2: checkValidLogin
public function checkValidLogin(FunctionalTester $I)
{
$I->submitForm('#login-form', $this->formParams('admin@example.org', '123123'));
$I->see('Logout (admin)', 'form button[type=submit]');
$I->dontSeeLink('Login');
$I->dontSeeLink('Signup');
}
示例3: deleteProject
/**
* @param FunctionalTester $I
*
* @actor FunctionalTester
*
* @return void
*/
public function deleteProject(FunctionalTester $I)
{
$I->am('Admin User');
$I->wantTo('delete an existing project details');
$project = $I->createProject(1);
$admin = $I->createUser(1, 4);
$I->amLoggedAs($admin);
$I->amOnAction('ProjectController@getEdit', ['project' => $project]);
$I->click(trans('tinyissue.delete_something', ['name' => $project->name]));
$I->seeCurrentActionIs('ProjectsController@getIndex');
$I->dontSeeLink('Project 1');
$I->amOnAction('ProjectsController@getIndex', ['status' => Project::STATUS_ARCHIVED]);
$I->dontSeeLink('Project 1');
$I->dontSeeRecord($project->getTable(), ['name' => 'Project 1']);
}
示例4: changeProject
/**
* @param FunctionalTester $I
*
* @actor FunctionalTester
*
* @return void
*/
public function changeProject(FunctionalTester $I)
{
$I->am('Admin User');
$I->wantTo('To move a issue to another project');
$admin = $I->createUser(1, 4);
$developer1 = $I->createUser(2, 2);
// developer
$I->amLoggedAs($admin);
$project1 = $I->createProject(1);
$project2 = $I->createProject(2, [$developer1]);
$issue1 = $I->createIssue(1, $admin, null, $project2);
$comment1 = $I->createComment(1, $admin, $issue1);
$issue1->reassign($developer1->id, $admin->id);
$I->amOnAction('Project\\IssueController@getIndex', ['project' => $project2, 'issue' => $issue1]);
$I->see('Project 2', '.subtitle a');
$I->see('Reassigned');
$I->amOnAction('ProjectController@getIndex', ['project' => $project2]);
$I->seeLink($issue1->title);
$uri = $I->getApplication()->url->action('Project\\IssueController@postChangeProject', ['issue' => $issue1]);
$I->sendAjaxPostRequest($uri, ['project_id' => $project1->id, '_token' => csrf_token()]);
$I->seeResponseCodeIs(200);
$I->amOnAction('ProjectController@getIndex', ['project' => $project2]);
$I->dontSeeLink($issue1->title);
$I->amOnAction('Project\\IssueController@getIndex', ['project' => $project1, 'issue' => $issue1]);
$I->see('Project 1', '.subtitle a');
$I->see('Reassigned');
$I->see($comment1->comment, '#comment' . $comment1->id . ' .content');
$I->amOnAction('ProjectController@getIndex', ['project' => $project1]);
$I->seeLink($issue1->title);
}
示例5: viewAssignedTo
/**
* @param FunctionalTester $I
*
* @actor FunctionalTester
*
* @return void
*/
public function viewAssignedTo(FunctionalTester $I)
{
$I->am('Admin User');
$I->wantTo('view issues assigned to logged user');
$admin = $I->createUser(1, 4);
$developer1 = $I->createUser(2, 2);
$I->amLoggedAs($developer1);
$project1 = $I->createProject(1);
$issue1 = $I->createIssue(1, $admin, $developer1, $project1);
$issue2 = $I->createIssue(2, $admin, $developer1, $project1);
$issue3 = $I->createIssue(3, $admin, null, $project1);
$I->amOnAction('ProjectController@getAssigned', ['project' => $project1]);
$I->seeLink($issue1->title);
$I->seeLink($issue2->title);
$I->dontSeeLink($issue3->title);
}
示例6: FunctionalTester
<?php
// @group mandatory
use tests\codeception\_pages\LoginPage;
$I = new FunctionalTester($scenario);
$I->wantTo('ensure that access control UI works');
$I->amOnPage('/');
$I->dontSeeLink('/de/backend', '.nav');
$I->dontSee('', '.glyphicon.glyphicon-cog');
LoginPage::openBy($I)->login('admin', 'admin');
$I->see('', '.glyphicon.glyphicon-cog');
示例7:
$I->see('Status');
$I->see('Errors');
$I->see('GUID', 'table#message-steps ul li');
$I->see('123-456-789', 'table#message-steps ul li a');
$I->see('Opportunity');
# module name
$I->see('Relation');
# badge for relation
$I->see('show/hide', 'table#message-steps a[data-target=".step-2-errors"]');
$I->dontSeeElement('table#message-steps table.collapsed');
$I->click('Set status New');
$I->seeResponseCodeIs(200);
$I->see('Message');
$I->seeLink('Back to the list');
$I->seeLink('Run message');
$I->dontSeeLink('Set status New');
$I->seeLink('Halt message');
$I->seeLink('Cancel message');
// steps with status "Error" are changed to status "Rerun":
$I->dontSee('Error', 'table#message-steps td.error-status');
$I->dontSee('Completed', 'table#message-steps td.error-status');
$I->dontSee('In progress', 'table#message-steps td.error-status');
$I->see('New', 'table#message-steps td.error-status');
$I->click('Halt message');
$I->seeResponseCodeIs(200);
$I->see('Message');
$I->seeLink('Back to the list');
$I->seeLink('Run message');
$I->seeLink('Set status New');
$I->dontSeeLink('Halt message');
$I->seeLink('Cancel message');
示例8: viewIssues
/**
* @param FunctionalTester $I
*
* @actor FunctionalTester
*
* @return void
*/
public function viewIssues(FunctionalTester $I)
{
$I->am('Developer User');
$I->wantTo('view issues assigned to logged user in all projects');
$admin = $I->createUser(1, 4);
$developer1 = $I->createUser(2, 2);
$I->amLoggedAs($developer1);
$project1 = $I->createProject(1, [$developer1]);
$issue1 = $I->createIssue(1, $admin, $developer1, $project1);
$issue2 = $I->createIssue(2, $admin, $developer1, $project1);
$issue3 = $I->createIssue(3, $developer1, $developer1, $project1);
$project2 = $I->createProject(2, [$developer1]);
$issue4 = $I->createIssue(4, $admin, $developer1, $project2);
$issue5 = $I->createIssue(5, $admin, $developer1, $project2);
$issue6 = $I->createIssue(6, $admin, null, $project2);
$I->amOnAction('HomeController@getIndex');
$I->click(trans('tinyissue.your_issues'));
$I->seeLink($issue1->title);
$I->seeLink($issue2->title);
$I->seeLink($issue3->title);
$I->seeLink($issue4->title);
$I->seeLink($issue5->title);
$I->dontSeeLink($issue6->title);
}
示例9: closeIssue
/**
* @param FunctionalTester $I
*
* @actor FunctionalTester
*
* @return void
*/
public function closeIssue(FunctionalTester $I)
{
$I->am('Developer User');
$I->wantTo('close an opened issue');
$admin = $I->createUser(1, 4);
$developer1 = $I->createUser(2, 2);
// developer
$I->amLoggedAs($admin);
$project = $I->createProject(1, [$developer1]);
$I->amOnAction('Project\\IssueController@getNew', ['project' => $project]);
$issue = $I->createIssue(1, $admin, $developer1, $project);
$I->amOnAction('Project\\IssueController@getIndex', ['project' => $project, 'issue' => $issue]);
$I->click(trans('tinyissue.close_issue'), '.close-issue');
$I->seeLink(trans('tinyissue.reopen_issue'));
$I->click(trans('tinyissue.reopen_issue'));
$I->dontSeeLink(trans('tinyissue.reopen_issue'));
$I->seeLink(trans('tinyissue.close_issue'));
}