user = Helper::makeUser('upload.' . randomString(6), 'upload'); } public function tearDown(): void { $this->user->remove(); } public function testUpload(): void { $upload = new \Gazelle\Upload($this->user); $this->assertInstanceOf(\Gazelle\Upload::class, $upload->setCategoryId(CATEGORY_MUSIC), 'upload-music'); $this->assertStringContainsString($this->user->auth(), $upload->head(), 'upload-head'); $this->assertStringContainsString( '', $upload->foot(true), 'upload-foot' ); $this->assertEquals("TextareaPreview.factory([[0, 'album_desc'],[1, 'release_desc']]);", $upload->albumReleaseJS(), 'upload-album-js'); $this->assertEquals("TextareaPreview.factory([[0, 'desc']]);", $upload->descriptionJS(), 'upload-description-js'); $form = $upload->music_form(['acoustic', 'baroque.era', 'chillout'], new \Gazelle\Manager\TGroup); $this->assertStringStartsWith('