Add structure test for ContentHandler::makeEmptyContent()
authorKunal Mehta <legoktm@member.fsf.org>
Sat, 10 Sep 2016 08:54:15 +0000 (01:54 -0700)
committerKunal Mehta <legoktm@member.fsf.org>
Sat, 10 Sep 2016 08:55:18 +0000 (01:55 -0700)
commitf86d2a63e4ac89dfc3438b018da853247fdadaee
tree9eefa3ca2586eec8628c12d82fa60faf64699ad8
parentb95260df1bd2c9caede3e93493dd40b2ae5441be
Add structure test for ContentHandler::makeEmptyContent()

This adds a structure test that verifies all registered ContentHandlers
will return a valid content object (as determined by
Content::isValid()), when makeEmptyContent() is called. Additionally, if
the handler extends TextContentHandler, it will verify it is an instance
of TextContentHandler::getContentClass().

This is a structure test so it is run for content handlers created by
extensions as well.

Change-Id: Idd67d824f2f7cc1819b1d8b186be058e63c4513d
tests/phpunit/structure/ContentHandlerSanityTest.php [new file with mode: 0644]