Created
July 3, 2012 21:48
-
-
Save jec006/3043557 to your computer and use it in GitHub Desktop.
How do I test this
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
//Basic condition should construct the correct widget and properly get its form | |
$test_widget = new \Drupal\sps\Test\Widget(array(), $manager); | |
$state = array(); | |
$widget = $test_widget->getPreviewForm(array(), $state); | |
$state = array(); | |
$element = $condition->getElement(array(), $state); | |
$this->assertEqual($subelement, $widget, | |
'BasicCondition should construct the correct widget from the settings and properly return its form.'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment