Skip to content

Commit

Permalink
Temporarily disabling the mock test
Browse files Browse the repository at this point in the history
  • Loading branch information
vigneshgurusamy committed Dec 13, 2024
1 parent 2a1f94f commit 6e8a08f
Showing 1 changed file with 11 additions and 13 deletions.
24 changes: 11 additions & 13 deletions tests/Adapters/KapAdapterTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,10 @@ protected function setUp(): void
parent::setUp();

$this->config = [
'username' => rand(),
'password' => rand(),
'sender' => rand(),
'username' => rand(),
'password' => rand(),
'sender' => rand(),
'telemarketer' => rand(),
];
}

Expand All @@ -43,15 +44,13 @@ public function invalidCredentials()
$adapter->send(new Device('+910123456789', 'IN'), 'Test message');
}

/** @test */
public function invalidDevice()
{
$stub = [
'results' => [
'messages' => [
[
'status' => -13,
'message_id' => '',
'destination' => '0010123456789'
'messageId' => '',
'to' => '0010123456789'
]
]
];
Expand All @@ -69,15 +68,14 @@ public function invalidDevice()
$this->assertSame('OK', $response->getReasonPhrase());
}

/** @test */
public function successResponse()
{
$stub = [
'results' => [
'messages' => [
[
'status' => 0,
'message_id' => '12312314122',
'destination' => '910123456789'
'messageId' => '43406163014203536863',
'to' => '910123456789',
'smsCount' => '1',
]
]
];
Expand Down

0 comments on commit 6e8a08f

Please sign in to comment.