Skip to content

Commit

Permalink
Added sample test case for travis
Browse files Browse the repository at this point in the history
  • Loading branch information
Manish Verma committed Aug 13, 2018
1 parent 4c46d97 commit 0ad0391
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 6 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# Please try and keep this file organized by alphabetical order. Single files first, then directories.
.env
.phpunit.result.cache
Homestead.yaml
Homestead.json
/config/lfm.php
Expand Down
2 changes: 1 addition & 1 deletion app/Http/Controllers/Common/PhpMailController.php
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ public function laravelMail($to, $toname, $subject, $data, $cc, $attach)
}

// $mail->addBCC($bc);
$size = count($attach);
$size = ($attach) ? count($attach) : 0;
if ($size > 0) {
for ($i = 0; $i < $size; $i++) {
if (is_array($attach) && array_key_exists($i, $attach)) {
Expand Down
3 changes: 1 addition & 2 deletions phpunit.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@
convertNoticesToExceptions="true"
convertWarningsToExceptions="true"
processIsolation="false"
stopOnFailure="false"
syntaxCheck="false">
stopOnFailure="false">
<testsuites>
<testsuite name="Application Test Suite">
<directory>./tests/</directory>
Expand Down
4 changes: 1 addition & 3 deletions tests/ExampleTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@ class ExampleTest extends TestCase
*/
public function testBasicExample()
{
// $response = $this->call('GET', '/');

// $this->assertEquals(200, $response->getStatusCode());
$this->assertEquals(1, 55-54);
}
}

0 comments on commit 0ad0391

Please sign in to comment.