Skip to content

Commit

Permalink
Merge branch '3.8'
Browse files Browse the repository at this point in the history
  • Loading branch information
crynobone committed Mar 28, 2019
2 parents 5dbf10a + b8c50ff commit e09600a
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 5 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
},
"autoload-dev": {
"psr-4": {
"Orchestra\\Messages\\TestCase\\" : "tests/"
"Orchestra\\Messages\\Tests\\" : "tests/"
}
},
"require": {
Expand Down
2 changes: 1 addition & 1 deletion tests/Feature/Http/Middleware/StoreMessageBagTest.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Orchestra\Messages\TestCase\Feature\Http\Middleware;
namespace Orchestra\Messages\Tests\Feature\Http\Middleware;

use Mockery as m;
use Illuminate\Http\Request;
Expand Down
6 changes: 5 additions & 1 deletion tests/Feature/MessageBagTest.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Orchestra\Messages\TestCase\Feature;
namespace Orchestra\Messages\Tests\Feature;

use Mockery as m;
use Orchestra\Support\Facades\Messages;
Expand Down Expand Up @@ -29,6 +29,7 @@ public function it_can_flash_empty_message_to_session()
$session->shouldReceive('flash')->once()->andReturn(true);

$this->assertNull(Messages::setSessionStore($session)->save());
$this->assertSame($session, Messages::getSessionStore());
}

/** @test */
Expand All @@ -49,6 +50,7 @@ public function it_can_store_messages_to_session()
$this->assertStringContainsString('Hi World', $serialize);
$this->assertStringContainsString('bye', $serialize);
$this->assertStringContainsString('Goodbye', $serialize);
$this->assertSame($session, Messages::getSessionStore());

Messages::save();
}
Expand All @@ -64,6 +66,7 @@ public function it_can_retrieve_message_from_session()
$retrieve = Messages::setSessionStore($session)->retrieve();
$retrieve->setFormat();

$this->assertSame($session, Messages::getSessionStore());
$this->assertInstanceOf('\Orchestra\Messages\MessageBag', $retrieve);
$this->assertEquals(['Hi World'], $retrieve->get('hello'));
$this->assertEquals(['Goodbye'], $retrieve->get('bye'));
Expand All @@ -87,6 +90,7 @@ public function it_can_extend_messages_to_current_request()
$retrieve = $stub->retrieve();
$retrieve->setFormat();

$this->assertSame($session, Messages::getSessionStore());
$this->assertInstanceOf('\Orchestra\Messages\MessageBag', $output);
$this->assertInstanceOf('\Orchestra\Messages\MessageBag', $retrieve);
$this->assertEquals(['Hi World', 'Hi Orchestra Platform'], $retrieve->get('hello'));
Expand Down
2 changes: 1 addition & 1 deletion tests/Feature/MessagesServiceProviderTest.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Orchestra\Messages\TestCase\Feature;
namespace Orchestra\Messages\Tests\Feature;

class MessagesServiceProviderTest extends TestCase
{
Expand Down
2 changes: 1 addition & 1 deletion tests/Feature/TestCase.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Orchestra\Messages\TestCase\Feature;
namespace Orchestra\Messages\Tests\Feature;

use Orchestra\Testbench\TestCase as Testbench;

Expand Down

0 comments on commit e09600a

Please sign in to comment.