public function setUp() { parent::setUp(); // Setup a file for bug 29408 $this->bug29408File = dirname(__FILE__) . '/bug29408'; file_put_contents($this->bug29408File, ""); self::$users = array('sysop' => new ApiTestUser('Uploadstashtestsysop', 'Upload Stash Test Sysop', '*****@*****.**', array('sysop')), 'uploader' => new ApiTestUser('Uploadstashtestuser', 'Upload Stash Test User', '*****@*****.**', array())); }
protected function setUp() { parent::setUp(); // Setup a file for bug 29408 $this->bug29408File = __DIR__ . '/bug29408'; file_put_contents($this->bug29408File, ""); self::$users = array('sysop' => new TestUser('Uploadstashtestsysop', 'Upload Stash Test Sysop', '*****@*****.**', array('sysop')), 'uploader' => new TestUser('Uploadstashtestuser', 'Upload Stash Test User', '*****@*****.**', array())); }
protected function setUp() { parent::setUp(); // Setup a file for bug 29408 $this->bug29408File = wfTempDir() . '/bug29408'; file_put_contents($this->bug29408File, ""); self::$users = ['sysop' => new TestUser('Uploadstashtestsysop', 'Upload Stash Test Sysop', '*****@*****.**', ['sysop']), 'uploader' => new TestUser('Uploadstashtestuser', 'Upload Stash Test User', '*****@*****.**', [])]; }