mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-11-19 16:10:00 +00:00
Code cleanup.
This commit is contained in:
@@ -18,12 +18,10 @@
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with Firefly III. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Tests\Unit\Helpers;
|
||||
|
||||
|
||||
use FireflyIII\Helpers\Attachments\AttachmentHelper;
|
||||
use FireflyIII\Models\Attachment;
|
||||
use FireflyIII\Models\TransactionJournal;
|
||||
@@ -34,7 +32,6 @@ use Tests\TestCase;
|
||||
/**
|
||||
* Class AttachmentHelperTest
|
||||
*
|
||||
* @package Tests\Unit\Helpers
|
||||
* @SuppressWarnings(PHPMD.TooManyPublicMethods)
|
||||
* @SuppressWarnings(PHPMD.ExcessiveMethodLength)
|
||||
* @SuppressWarnings(PHPMD.CouplingBetweenObjects)
|
||||
@@ -63,7 +60,6 @@ class AttachmentHelperTest extends TestCase
|
||||
* @covers \FireflyIII\Helpers\Attachments\AttachmentHelper::hasFile
|
||||
* @covers \FireflyIII\Helpers\Attachments\AttachmentHelper::getMessages
|
||||
* @covers \FireflyIII\Helpers\Attachments\AttachmentHelper::getErrors
|
||||
*
|
||||
*/
|
||||
public function testInvalidMime()
|
||||
{
|
||||
@@ -93,7 +89,6 @@ class AttachmentHelperTest extends TestCase
|
||||
* @covers \FireflyIII\Helpers\Attachments\AttachmentHelper::getMessages
|
||||
* @covers \FireflyIII\Helpers\Attachments\AttachmentHelper::getErrors
|
||||
* @covers \FireflyIII\Helpers\Attachments\AttachmentHelper::getAttachments
|
||||
*
|
||||
*/
|
||||
public function testSave()
|
||||
{
|
||||
@@ -129,7 +124,6 @@ class AttachmentHelperTest extends TestCase
|
||||
* @covers \FireflyIII\Helpers\Attachments\AttachmentHelper::getMessages
|
||||
* @covers \FireflyIII\Helpers\Attachments\AttachmentHelper::getErrors
|
||||
* @covers \FireflyIII\Helpers\Attachments\AttachmentHelper::getAttachments
|
||||
*
|
||||
*/
|
||||
public function testSaveSecond()
|
||||
{
|
||||
@@ -146,6 +140,4 @@ class AttachmentHelperTest extends TestCase
|
||||
$this->assertCount(0, $messages);
|
||||
$this->assertEquals('Uploaded file "apple-touch-icon.png" is already attached to this object.', $errors->first());
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user