public function testRegistration() { \WebChemistry\Images\Controls\Upload::register(); $form = new \Nette\Forms\Form(); $upload = $form->addImageUpload('image'); $this->assertInstanceOf('WebChemistry\\Images\\Controls\\Upload', $upload); }