. * */ namespace OCA\News\Utility\ArticleEnhancer; use \OCA\News\Db\Item; require_once(__DIR__ . "/../../../classloader.php"); class DefaultEnhancerTest extends \OCA\AppFramework\Utility\TestUtility { private $testEnhancer; protected function setUp() { $this->testEnhancer = new DefaultEnhancer(); } public function testCanHandle() { $item = new Item(); $this->assertTrue($this->testEnhancer->canHandle($item)); } public function testEnhance() { $item = new Item(); $this->assertEquals($item, $this->testEnhancer->enhance($item)); } }