This commit is contained in:
Marcel Pociot committed 2021-05-21 17:20:48 +02:00
1 parent 9220e83798
commit 717e8cf05c
25 files changed
+585 -128

No files matched your search

+13
View File
@@ -115,6 +115,19 @@ class TunnelTest extends TestCase
$this->assertInstanceOf(Connection::class, $connection);
}
/** @test */
public function it_rejects_tcp_sharing_if_disabled()
{
$this->createTestTcpServer();
$this->app['config']['expose.admin.allow_tcp_port_sharing'] = false;
$this->expectException(\UnexpectedValueException::class);
$client = $this->createClient();
$this->await($client->connectToServerAndShareTcp(8085));
}
/** @test */
public function it_rejects_tcp_sharing_if_forbidden()
{