summaryrefslogtreecommitdiff
path: root/www/wiki/tests/phpunit/includes/diff/DiffTest.php
diff options
context:
space:
mode:
Diffstat (limited to 'www/wiki/tests/phpunit/includes/diff/DiffTest.php')
-rw-r--r--www/wiki/tests/phpunit/includes/diff/DiffTest.php19
1 files changed, 19 insertions, 0 deletions
diff --git a/www/wiki/tests/phpunit/includes/diff/DiffTest.php b/www/wiki/tests/phpunit/includes/diff/DiffTest.php
new file mode 100644
index 00000000..da6d7d95
--- /dev/null
+++ b/www/wiki/tests/phpunit/includes/diff/DiffTest.php
@@ -0,0 +1,19 @@
+<?php
+
+/**
+ * @author Addshore
+ *
+ * @group Diff
+ */
+class DiffTest extends MediaWikiTestCase {
+
+ /**
+ * @covers Diff::getEdits
+ */
+ public function testGetEdits() {
+ $obj = new Diff( [], [] );
+ $obj->edits = 'FooBarBaz';
+ $this->assertEquals( 'FooBarBaz', $obj->getEdits() );
+ }
+
+}