Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Describe and implement last step in scenario

$> vim src/Bossa/Bundle/TrainingBundle/Features/Context/StudentContext.php
$> bin/behat --no-paths admissions/student_enrols_on_a_course.feature:6
$> vim src/Bossa/Bundle/TrainingBundle/Resources/views/Courses/list.html.twig
$> bin/behat --no-paths admissions/student_enrols_on_a_course.feature:6

Describe outcome expectations and tuneup the template to make scenario green.
  • Loading branch information...
commit 01d08ffd1bfdcad3e7103ff3c9d12b27eaabc0e2 1 parent 04a4511
@everzet authored
View
4 src/Bossa/Bundle/TrainingBundle/Features/Context/StudentContext.php
@@ -57,7 +57,9 @@ public function iGoToThePage($page)
*/
public function iShouldNotSeeAnyCourses()
{
- throw new PendingException();
+ $this->mink->assertSession()->pageTextContains(
+ 'No courses scheduled.'
+ );
}
/**
View
3  src/Bossa/Bundle/TrainingBundle/Resources/views/Courses/list.html.twig
@@ -1,4 +1,7 @@
{% extends '::base.html.twig' %}
{% block body %}
+ {% if not courses|length %}
+ No courses scheduled.
+ {% endif %}
{% endblock body %}
Please sign in to comment.
Something went wrong with that request. Please try again.