Skip to content

Instantly share code, notes, and snippets.

View RoySegall's full-sized avatar
⌨️
God is a coder

Roy Segall RoySegall

⌨️
God is a coder
View GitHub Profile
@RoySegall
RoySegall / gist:4214449
Created December 5, 2012 10:06
WSOD taxonomy term behat test
Feature:
Verify for the WSOD not the be shown when viewing a term page.
@api @current
Scenario: Check that all of the apps are turned on
Given I am logged in as a user with the "authenticated user" role
When I visit "software/term/1"
Then I should not see "Undefined index: localized_options in theme_nice_menus_build()"
@RoySegall
RoySegall / gist:4215680
Created December 5, 2012 13:56
OS widget feature
Feature:
Testing the filter by term widget.
@api
Scenario: Verfity that the user see terms in the filter by term widget.
Given I am logged in as a user with the "administrator" role
And I set the widget "Filter by term" in the "Right contet" region on the "Blog" page
When I visit "john/blog"
Then I should see "Filter by term"
@RoySegall
RoySegall / gist:4244200
Created December 9, 2012 10:51
Simple view list
Feature:
Testing the simple view widget.
@api
Scenario: Verify the simple view widget work after tagging node to term.
Given I am logged in as a user with the "administrator" role
And the widget "Simple view list" is set in the "classes" page with the following <settings>:
| Content Type | Class | select list |
| Vocabulary | authors | select list |
When I tagging the node "John F. Kennedy" to the term
@RoySegall
RoySegall / gist:4244784
Created December 9, 2012 13:02
Search widget
Feature:
Testing the search widget.
@api
Scenario: Search for a book witht the search widget.
Given the widget "Search" is set in the "Publications" page
And I visit "john/publications"
When I fill "search_block_form" with "The Little Prince"
Then I should see the link "The Little Prince"
@RoySegall
RoySegall / gist:4245352
Created December 9, 2012 14:43
Active book TOC
Feature:
Testing the active book TOC widget.
@api
Scenario: Verify that the active book TOC widget works fine.
Given the widget "Active book TOC" is set in the "Publications" page with the following <settings>:
| Which book | All about nodes | select list |
And I visit "john/publications"
Then I should see the link "All about nodes"
@RoySegall
RoySegall / gist:4245505
Created December 9, 2012 15:06
Twitter pull
Feature:
Testing the twitter pull widget.
@api @current
Scenario: Check for tweets from the twitter pull widget.
Given I am logged in as a user with the "administrator" role
And the widget "Twitter" is set in the "Publications" page with the following <settings>:
| Twitter search | @NASA | textfield |
And I visit "john/publications"
Then I should see the link "NASA"
@RoySegall
RoySegall / gist:4249134
Created December 10, 2012 07:51
Bio widget
Feature:
Testing the bio teaser widget.
@api
Scenario: Verify the bio teaser widget works fine.
Given I am logged in as a user with the "administrator" role
And the widget "Bio" is set in the "Classes" page with the following <settings>:
| Content Type | Class | select list |
| Display title of your Bio | select | radio |
When I visit "john/classes"
public function prepare($entity, $row) {
$entity->field_presentation_date[LANGUAGE_NONE][0] = array(
'value' => $row->date,
'date_type' => 'datetime',
);
}
@RoySegall
RoySegall / gist:4266083
Created December 12, 2012 08:26
Allow deleting group-content when group is deleted http://drupal.org/node/1862702
/**
* Testing for deleting group-content when group is deleted.
*/
class OgDeleteGroupContentTestCase extends DrupalWebTestCase {
public $groupType;
public $nodeType;
public static function getInfo() {
return array(
@RoySegall
RoySegall / gist:5488268
Created April 30, 2013 11:58
Patch for entity file
diff --git a/file_entity.info b/file_entity.info
index ce95294..35830d9 100644
--- a/file_entity.info
+++ b/file_entity.info
@@ -12,6 +12,7 @@ files[] = views/views_handler_filter_file_type.inc
files[] = views/views_handler_field_file_link.inc
files[] = views/views_handler_field_file_link_edit.inc
files[] = views/views_handler_field_file_link_delete.inc
+files[] = views/views_handler_filter_scehma_type.inc
files[] = views/views_handler_field_file_link_download.inc