public function testApiGetDataDir_ReturnsDataDir() { $core = $this->createCore(); $this->setProtectedProperty($core, 'dataPath', $path = 'basePath/dataPath'); $result = $core->getDataDir(); $this->assertSame('/dataPath', $result); }