diff --git a/core/modules/responsive_image/lib/Drupal/responsive_image/Tests/ResponsiveImageThemeFunctionsTest.php b/core/modules/responsive_image/lib/Drupal/responsive_image/Tests/ResponsiveImageThemeFunctionsTest.php
index 494e6f4..7b17827 100644
--- a/core/modules/responsive_image/lib/Drupal/responsive_image/Tests/ResponsiveImageThemeFunctionsTest.php
+++ b/core/modules/responsive_image/lib/Drupal/responsive_image/Tests/ResponsiveImageThemeFunctionsTest.php
@@ -2,37 +2,37 @@
/**
* @file
- * Contains \Drupal\picture\Tests\PictureThemeFunctionsTest.
+ * Contains \Drupal\responsive_image\Tests\ResponsiveImageThemeFunctionsTest.
*/
-namespace Drupal\picture\Tests;
+namespace Drupal\responsive_image\Tests;
use Drupal\simpletest\WebTestBase;
/**
- * Tests picture theme functions.
+ * Tests responsive image theme functions.
*/
-class PictureThemeFunctionsTest extends WebTestBase {
+class ResponsiveImageThemeFunctionsTest extends WebTestBase {
/**
* Modules to enable.
*
* @var array
*/
- public static $modules = array('picture');
+ public static $modules = array('responsive_image');
public static function getInfo() {
return array(
- 'name' => 'Picture theme functions',
- 'description' => 'Tests the picture theme functions.',
- 'group' => 'Picture',
+ 'name' => 'Responsive Image theme functions',
+ 'description' => 'Tests the responsive_image theme functions.',
+ 'group' => 'Responsive Image',
);
}
/**
- * Tests usage of the theme_picture() function.
+ * Tests usage of the template_preprocess_responsive_image() function.
*/
- function testPictureTheme() {
+ function testResponsiveImageTheme() {
// Create an image.
$files = $this->drupalGetTestFiles('image');
$file = reset($files);
@@ -43,73 +43,23 @@ function testPictureTheme() {
$style->save();
$url = $style->buildUrl($original_uri);
- // Test using theme_picture() with a NULL value for the alt option.
+ // Test using template_preprocess_responsive_image() with a NULL value for the alt option.
$path = $this->randomName();
$element = array(
- '#theme' => 'picture',
+ '#theme' => 'responsive_image',
'#uri' => $original_uri,
'#alt' => NULL,
'#style_name' => 'test',
+ '#breakpoints' => 'test',
);
$rendered_element = render($element);
- $expected_result = '';
- $this->assertTrue(strpos($rendered_element, '