[ Index ] |
PHP Cross Reference of Unnamed Project |
[Summary view] [Print] [Text view]
1 @block @block_blog_menu 2 Feature: Enable Block blog menu in a course 3 In order to enable the blog menu in a course 4 As a teacher 5 I can add blog menu 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 block to a the 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 "Blog menu" block 27 Then I should see "Blogging is disabled!" in the "Blog menu" "block" 28 29 Scenario: Add the block to a the course when blog associations are disabled 30 Given I log in as "admin" 31 And the following config values are set as admin: 32 | useblogassociations | 0 | 33 And I log out 34 And I log in as "teacher1" 35 And I follow "Course 1" 36 And I turn editing mode on 37 When I add the "Blog menu" block 38 Then I should see "Blog entries" in the "Blog menu" "block" 39 And I should see "Add a new entry" in the "Blog menu" "block" 40 And I should not see "View all entries for this course" in the "Blog menu" "block" 41 And I should not see "View my entries about this course" in the "Blog menu" "block" 42 And I should not see "Add an entry about this course" in the "Blog menu" "block" 43 44 Scenario: Add the block to a the course when blog associations are enabled 45 Given I log in as "admin" 46 And the following config values are set as admin: 47 | useblogassociations | 1 | 48 And I log out 49 And I log in as "teacher1" 50 And I follow "Course 1" 51 And I turn editing mode on 52 When I add the "Blog menu" block 53 Then I should see "Blog entries" in the "Blog menu" "block" 54 And I should see "Add a new entry" in the "Blog menu" "block" 55 And I should see "View all entries for this course" in the "Blog menu" "block" 56 And I should see "View my entries about this course" in the "Blog menu" "block" 57 And I should see "Add an entry about this course" in the "Blog menu" "block" 58 59 Scenario: Add the block to a the course when RSS is disabled 60 Given I log in as "admin" 61 And the following config values are set as admin: 62 | enablerssfeeds | 0 | 63 And I log out 64 And I log in as "teacher1" 65 And I follow "Course 1" 66 And I turn editing mode on 67 When I add the "Blog menu" block 68 Then I should not see "Blog RSS feed" in the "Blog menu" "block" 69 And I should see "Add a new entry" in the "Blog menu" "block" 70 71 Scenario: Add the block to a the course when RSS is enabled 72 Given I log in as "admin" 73 And the following config values are set as admin: 74 | enablerssfeeds | 1 | 75 And I log out 76 And I log in as "teacher1" 77 And I follow "Course 1" 78 And I turn editing mode on 79 When I add the "Blog menu" block 80 Then I should see "Blog RSS feed" in the "Blog menu" "block" 81 And I should see "Add a new entry" in the "Blog menu" "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 |