Minor - fix docs, remove unused function in tests.

pull/2487/head
jmontoyaa 7 years ago
parent d155b854f4
commit ccd58c778a
  1. 2
      tests/behat/README.md
  2. 12
      tests/behat/features/bootstrap/FeatureContext.php

@ -49,5 +49,5 @@ cd tests/behat
To run an specific feature:
```
../../vendor/behat/behat/bin/behat features/createCourse.feature
../../vendor/behat/behat/bin/behat course.feature
```

@ -133,22 +133,12 @@ class FeatureContext extends MinkContext
$this->clickLink('Delete');
}
/**
* @Given /^I am in course "([^"]*)"$/
* @Todo redefine function to be different from I am on course TEMP homepage
*/
public function iAmInCourse($argument)
{
$this->visit('/main/course_home/course_home.php?cDir=' . $argument);
$this->assertElementNotOnPage('.alert-danger');
}
/**
* @Given /^I am on course "([^"]*)" homepage$/
*/
public function iAmOnCourseXHomepage($argument)
{
$this->visit('/main/course_home/course_home.php?cDir=' . $argument);
$this->visit('/courses/'.$argument.'/index.php');
$this->assertElementNotOnPage('.alert-danger');
}

Loading…
Cancel
Save