Page MenuHomeDevCentral

IntegrationTest.php
No OneTemporary

IntegrationTest.php

<?php
namespace Nasqueron\Notifications\Tests\Config\Reporting;
use Nasqueron\Notifications\Tests\TestCase;
class IntegrationTest extends TestCase {
public function setUp (): void {
parent::setUp();
$this->mockServices()
->shouldReceive('get')
->once()
->andReturn([]); // No service
}
/**
* Config works.
*/
public function testConfig() {
$json = $this->get('/config')
->response
->getContent();
$this->assertJsonStringEqualsJsonFile(
__DIR__ . "/../../data/config.json",
$json
);
}
}

File Metadata

Mime Type
text/x-php
Expires
Sat, Nov 1, 18:09 (1 d, 7 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3121706
Default Alt Text
IntegrationTest.php (664 B)

Event Timeline