Skip to content
This repository has been archived by the owner on May 3, 2021. It is now read-only.

Commit

Permalink
Fix incorrect namespace & remove linting overrides (#12)
Browse files Browse the repository at this point in the history
* Fix incorrect namespace & remove linting overrides

* Update changelog
  • Loading branch information
claudiodekker authored Feb 1, 2019
1 parent 1db6003 commit 3d7d7f7
Show file tree
Hide file tree
Showing 10 changed files with 9 additions and 38 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

All notable changes to `ubient/laravel-flash-message` will be documented in this file

## 2.0.2 - 2019-02-01
- Fixed an incorrect namespacing issue for multiple files in the `tests/Unit/` folder
- Removed (opinionated) linter overrides from tests

## 2.0.1 - 2018-11-04
- Remove a trailing semicolon in `alert.blade.php`

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,6 @@
use Ubient\FlashMessage\Tests\TestCase;
use PHPUnit\Framework\ExpectationFailedException;

/**
* @SuppressWarnings(PHPMD.CamelCaseMethodName)
* phpcs:disable PSR1.Methods.CamelCapsMethodName.NotCamelCaps
*/
class AssertHasErrorMessageTest extends TestCase
{
/** @test */
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,6 @@
use Ubient\FlashMessage\Tests\TestCase;
use PHPUnit\Framework\ExpectationFailedException;

/**
* @SuppressWarnings(PHPMD.CamelCaseMethodName)
* phpcs:disable PSR1.Methods.CamelCapsMethodName.NotCamelCaps
*/
class AssertHasInfoMessageTest extends TestCase
{
/** @test */
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,6 @@
use Ubient\FlashMessage\Tests\TestCase;
use PHPUnit\Framework\ExpectationFailedException;

/**
* @SuppressWarnings(PHPMD.CamelCaseMethodName)
* phpcs:disable PSR1.Methods.CamelCapsMethodName.NotCamelCaps
*/
class AssertHasSuccessMessageTest extends TestCase
{
/** @test */
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,6 @@
use Ubient\FlashMessage\Tests\TestCase;
use PHPUnit\Framework\ExpectationFailedException;

/**
* @SuppressWarnings(PHPMD.CamelCaseMethodName)
* phpcs:disable PSR1.Methods.CamelCapsMethodName.NotCamelCaps
*/
class AssertHasWarningMessageTest extends TestCase
{
/** @test */
Expand Down
4 changes: 0 additions & 4 deletions tests/Feature/FlashMessageServiceProviderTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,6 @@
use Illuminate\Foundation\Testing\TestResponse;
use Ubient\FlashMessage\FlashMessageServiceProvider;

/**
* @SuppressWarnings(PHPMD.CamelCaseMethodName)
* phpcs:disable PSR1.Methods.CamelCapsMethodName.NotCamelCaps
*/
class FlashMessageServiceProviderTest extends TestCase
{
/** @var string */
Expand Down
4 changes: 0 additions & 4 deletions tests/Feature/RedirectWithFlashMessageTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,6 @@

use Ubient\FlashMessage\Tests\TestCase;

/**
* @SuppressWarnings(PHPMD.CamelCaseMethodName)
* phpcs:disable PSR1.Methods.CamelCapsMethodName.NotCamelCaps
*/
class RedirectWithFlashMessageTest extends TestCase
{
/** @test */
Expand Down
7 changes: 3 additions & 4 deletions tests/Feature/ViewFlashMessageTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,14 @@
use Ubient\FlashMessage\Tests\TestCase;
use PHPUnit\Framework\ExpectationFailedException;

/**
* @SuppressWarnings(PHPMD.CamelCaseMethodName)
* phpcs:disable PSR1.Methods.CamelCapsMethodName.NotCamelCaps
*/
class ViewFlashMessageTest extends TestCase
{
const CSS_CLASS_INFO = 'bg-blue-light';

const CSS_CLASS_SUCCESS = 'bg-green-light';

const CSS_CLASS_WARNING = 'bg-orange';

const CSS_CLASS_ERROR = 'bg-red-light';

public function setUp()
Expand Down
6 changes: 1 addition & 5 deletions tests/Unit/FlashMessageTest.php
Original file line number Diff line number Diff line change
@@ -1,14 +1,10 @@
<?php

namespace Ubient\FlashMessage\Unit;
namespace Ubient\FlashMessage\Tests\Unit;

use Ubient\FlashMessage\FlashMessage;
use Ubient\FlashMessage\Tests\TestCase;

/**
* @SuppressWarnings(PHPMD.CamelCaseMethodName)
* phpcs:disable PSR1.Methods.CamelCapsMethodName.NotCamelCaps
*/
class FlashMessageTest extends TestCase
{
/** @test */
Expand Down
6 changes: 1 addition & 5 deletions tests/Unit/HasFlashMessageConstraintTest.php
Original file line number Diff line number Diff line change
@@ -1,16 +1,12 @@
<?php

namespace Ubient\FlashMessage\Unit\PHPUnit;
namespace Ubient\FlashMessage\Tests\Unit;

use PHPUnit\Framework\TestFailure;
use Ubient\FlashMessage\Tests\TestCase;
use PHPUnit\Framework\ExpectationFailedException;
use Ubient\FlashMessage\HasFlashMessageConstraint;

/**
* @SuppressWarnings(PHPMD.CamelCaseMethodName)
* phpcs:disable PSR1.Methods.CamelCapsMethodName.NotCamelCaps
*/
class HasFlashMessageConstraintTest extends TestCase
{
protected function assertFailingConstraint($expected, $actual, $expectedErrorMessage)
Expand Down

0 comments on commit 3d7d7f7

Please sign in to comment.