X-Git-Url: http://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/exercices/modifier.php?a=blobdiff_plain;f=tests%2Fphpunit%2Fstructure%2FContentHandlerSanityTest.php;h=c8bcd60de3d4536b1490c8448fa12327a715f26c;hb=525bfbc8df855aa12e01868d92532cd64482dc7d;hp=98a0fbbfd5c41d171bae000ad6e1daa5cdad77fc;hpb=efe855145dfe509aa6c62f4bcee6fbf320fda957;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())" + ); + } } + }