-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
114 additions
and
75 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,15 @@ | ||
{ | ||
"cSpell.words": ["miscapi", "smsapi", "smsapimany"] | ||
} | ||
"cSpell.words": [ | ||
"bulksms", | ||
"bulksmsbd", | ||
"HASAN", | ||
"intregation", | ||
"laravel", | ||
"miscapi", | ||
"nanopkg", | ||
"SHAZEEDUL", | ||
"smsapi", | ||
"smsapimany", | ||
"SYED" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
<?php | ||
|
||
namespace Nanopkg\BulkSmsBd\Contracts; | ||
|
||
interface BulkSmsBdNotification | ||
{ | ||
/** | ||
* Method to prepare the notification data for BulkSmsBd. | ||
* | ||
* @param mixed $notifiable | ||
* @return array | ||
*/ | ||
public function toBulkSmsBd($notifiable): array; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,49 @@ | ||
<?php | ||
|
||
it('can test', function () { | ||
expect(true)->toBeTrue(); | ||
// Test Set BulkSmsBd Config Mode log | ||
test('set BulkSmsBd Config Mode log', function () { | ||
config(['bulksmsbd.mode' => 'log']); | ||
$this->assertEquals('log', config('bulksmsbd.mode')); | ||
}); | ||
|
||
// Check BulkSmsBd Instance Test | ||
test('check BulkSmsBd instance', function () { | ||
$this->assertInstanceOf(\Nanopkg\BulkSmsBd\BulkSmsBd::class, \Nanopkg\BulkSmsBd\Facades\BulkSmsBd::getFacadeRoot()); | ||
}); | ||
|
||
// Check BulkSmsBd OneToOne Test | ||
test('check BulkSmsBd OneToOne', function () { | ||
$this->assertInstanceOf(\Nanopkg\BulkSmsBd\BulkSmsBd::class, \Nanopkg\BulkSmsBd\Facades\BulkSmsBd::OneToOne('8801700000000', 'message')); | ||
}); | ||
|
||
// Check BulkSmsBd OneToMany Test | ||
test('check BulkSmsBd OneToMany', function () { | ||
$this->assertInstanceOf(\Nanopkg\BulkSmsBd\BulkSmsBd::class, \Nanopkg\BulkSmsBd\Facades\BulkSmsBd::OneToMany(['8801700000000', '8801800000000'], 'message')); | ||
}); | ||
|
||
// Check BulkSmsBd ManyToMany Test | ||
test('check BulkSmsBd ManyToMany', function () { | ||
$this->assertInstanceOf(\Nanopkg\BulkSmsBd\BulkSmsBd::class, \Nanopkg\BulkSmsBd\Facades\BulkSmsBd::ManyToMany([ | ||
['to' => '8801700000000', 'message' => 'message'], | ||
])); | ||
}); | ||
|
||
// Check BulkSmsBd Send Test | ||
test('check BulkSmsBd Send', function () { | ||
$this->assertTrue(\Nanopkg\BulkSmsBd\Facades\BulkSmsBd::send()); | ||
}); | ||
|
||
// Check BulkSmsBd OneToOne Job Test | ||
test('check BulkSmsBd OneToOne Job', function () { | ||
$this->assertInstanceOf(\Nanopkg\BulkSmsBd\Jobs\BulkSmsBdOneToOne::class, new \Nanopkg\BulkSmsBd\Jobs\BulkSmsBdOneToOne('8801700000000', 'message')); | ||
}); | ||
|
||
// Check BulkSmsBd OneToMany Job Test | ||
test('check BulkSmsBd OneToMany Job', function () { | ||
$this->assertInstanceOf(\Nanopkg\BulkSmsBd\Jobs\BulkSmsBdOneToMany::class, new \Nanopkg\BulkSmsBd\Jobs\BulkSmsBdOneToMany(['8801700000000', '8801800000000'], 'message')); | ||
}); | ||
|
||
// Check BulkSmsBd Channel Test | ||
test('check BulkSmsBd Channel', function () { | ||
$this->assertInstanceOf(\Nanopkg\BulkSmsBd\Broadcasting\BulkSmsBdChannel::class, new \Nanopkg\BulkSmsBd\Broadcasting\BulkSmsBdChannel()); | ||
}); |