[ Index ] |
PHP Cross Reference of Unnamed Project |
[Summary view] [Print] [Text view]
1 @block @block_blog_recent 2 Feature: Feature: Users can use the recent blog entries block to view recent blog entries. 3 In order to enable the recent blog entries in a course 4 As a teacher 5 I can add recent blog entries block to a course 6 7 Background: 8 Given the following "users" exist: 9 | username | firstname | lastname | email | idnumber | 10 | teacher1 | Teacher | 1 | teacher1@example.com | T1 | 11 And the following "courses" exist: 12 | fullname | shortname | category | 13 | Course 1 | C1 | 0 | 14 And the following "course enrolments" exist: 15 | user | course | role | 16 | teacher1 | C1 | editingteacher | 17 18 Scenario: Add the recent blogs block to a course when blogs are disabled 19 Given I log in as "admin" 20 And the following config values are set as admin: 21 | enableblogs | 0 | 22 And I log out 23 And I log in as "teacher1" 24 And I follow "Course 1" 25 And I turn editing mode on 26 When I add the "Recent blog entries" block 27 Then I should see "Blogging is disabled!" in the "Recent blog entries" "block" 28 29 Scenario: Add the recent blogs block to a course when there are not any blog posts 30 Given I log in as "teacher1" 31 And I follow "Course 1" 32 And I turn editing mode on 33 When I add the "Recent blog entries" block 34 Then I should see "No recent entries" in the "Recent blog entries" "block"
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated: Thu Aug 11 10:00:09 2016 | Cross-referenced by PHPXref 0.7.1 |