From 8276c465dfb473963f329c07bbeed3d87bc93883 Mon Sep 17 00:00:00 2001 From: Fabian Schmengler Date: Tue, 12 Jul 2016 13:46:49 +0200 Subject: [PATCH] Fix constraint type for assertLayoutBlockRenderedContent[Not]() Passed content constraints were been ignored because of wrong type. --- app/code/community/EcomDev/PHPUnit/Test/Case/Controller.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/code/community/EcomDev/PHPUnit/Test/Case/Controller.php b/app/code/community/EcomDev/PHPUnit/Test/Case/Controller.php index c92325c8..ae5ba8cf 100644 --- a/app/code/community/EcomDev/PHPUnit/Test/Case/Controller.php +++ b/app/code/community/EcomDev/PHPUnit/Test/Case/Controller.php @@ -1160,7 +1160,7 @@ public static function assertLayoutBlockRenderedContent($blockName, self::assertThatLayout( self::layoutBlock( $blockName, - EcomDev_PHPUnit_Constraint_Layout_Block::TYPE_RENDERED, + EcomDev_PHPUnit_Constraint_Layout_Block::TYPE_RENDERED_CONTENT, $constraint ), $message @@ -1180,7 +1180,7 @@ public static function assertLayoutBlockRenderedContentNot($blockName, self::assertThatLayout( self::layoutBlock( $blockName, - EcomDev_PHPUnit_Constraint_Layout_Block::TYPE_RENDERED, + EcomDev_PHPUnit_Constraint_Layout_Block::TYPE_RENDERED_CONTENT, self::logicalNot($constraint) ), $message