X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=tests%2Fphpunit%2Fstructure%2FContentHandlerSanityTest.php;h=c8bcd60de3d4536b1490c8448fa12327a715f26c;hb=2917f7b6cd3b16068309c5ee369f946c17bfe0bb;hp=98a0fbbfd5c41d171bae000ad6e1daa5cdad77fc;hpb=d9b2cdabdc0a11344158d81ee45a91675a51e945;p=lhc%2Fweb%2Fwiklou.git diff --git a/tests/phpunit/structure/ContentHandlerSanityTest.php b/tests/phpunit/structure/ContentHandlerSanityTest.php index 98a0fbbfd5..c8bcd60de3 100644 --- a/tests/phpunit/structure/ContentHandlerSanityTest.php +++ b/tests/phpunit/structure/ContentHandlerSanityTest.php @@ -1,4 +1,7 @@ assertTrue( - $content->isValid(), - "$handlerClass::makeEmptyContent() did not return a valid content ($contentClass::isValid())" - ); + if ( $handler->supportsDirectEditing() ) { + $this->assertTrue( + $content->isValid(), + "$handlerClass::makeEmptyContent() did not return a valid content ($contentClass::isValid())" + ); + } } + }