Skip to content

Commit f8c8df9

Browse files
committed
Remove tests that can no longer fail due to upstream changes in the client constructors
1 parent f723936 commit f8c8df9

File tree

2 files changed

+0
-30
lines changed

2 files changed

+0
-30
lines changed

tests/ConnectionManagerTest.php

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -30,14 +30,6 @@ public function testACustomConnectionIsCreated(): void
3030
$this->assertNotSame($manager->connection(), $manager->connection('custom'), 'The default manager instance should not be the same as the custom instance.');
3131
}
3232

33-
public function testAnInvalidConfigurationCausesAnException(): void
34-
{
35-
$this->expectException(\InvalidArgumentException::class);
36-
$this->expectExceptionMessage('Driver [invalid] is not correctly configured.');
37-
38-
$this->app->make(ConnectionManager::class)->connection('invalid');
39-
}
40-
4133
public function testAnUnknownCustomConnectionCausesAnException(): void
4234
{
4335
$this->expectException(\InvalidArgumentException::class);
@@ -129,13 +121,6 @@ protected function getEnvironmentSetUp($app): void
129121
'from' => '+15558675309',
130122
]
131123
);
132-
133-
$app['config']->set(
134-
'twilio.connections.invalid',
135-
[
136-
'from' => '+15558675309',
137-
]
138-
);
139124
}
140125

141126
/**

tests/Facades/TwilioClientTest.php

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -28,14 +28,6 @@ public function testACustomConnectionIsCreated(): void
2828
$this->assertNotSame(\TwilioClient::connection(), \TwilioClient::connection('custom'), 'The default manager instance should not be the same as the custom instance.');
2929
}
3030

31-
public function testAnInvalidConfigurationCausesAnException(): void
32-
{
33-
$this->expectException(\InvalidArgumentException::class);
34-
$this->expectExceptionMessage('Driver [invalid] is not correctly configured.');
35-
36-
\TwilioClient::connection('invalid');
37-
}
38-
3931
public function testAnUnknownCustomConnectionCausesAnException(): void
4032
{
4133
$this->expectException(\InvalidArgumentException::class);
@@ -127,13 +119,6 @@ protected function getEnvironmentSetUp($app): void
127119
'from' => '+15558675309',
128120
]
129121
);
130-
131-
$app['config']->set(
132-
'twilio.connections.invalid',
133-
[
134-
'from' => '+15558675309',
135-
]
136-
);
137122
}
138123

139124
/**

0 commit comments

Comments
 (0)