contentModeller = new ContentModeller(); $this->testEnvironment = new TestEnvironment(); } public function testCanConstruct() { $this->assertInstanceOf( ContentModeller::class, new ContentModeller() ); } public function testMakeContentList() { $contents = [ 'description' => '...', 'import' => [ 'page' => 'Foo', 'version' => 1 ] ]; $instance = new ContentModeller(); $contents = $instance->makeContentList( 'Foo', $contents ); foreach ( $contents as $content ) { $this->assertInstanceOf( '\SMW\Importer\ImportContents', $content ); } } }