<?php
+
+use Wikimedia\TestingAccessWrapper;
+
/**
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
$handlerClass = get_class( $handler );
$contentClass = get_class( $content );
- $this->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())"
+ );
+ }
}
+
}