Skip to content

Commit

Permalink
ui to select
Browse files Browse the repository at this point in the history
  • Loading branch information
alnutile committed Aug 27, 2023
1 parent ba8b67d commit f54a754
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
3 changes: 2 additions & 1 deletion app/Jobs/MailBoxParserJob.php
Expand Up @@ -74,7 +74,7 @@ public function handle(): void
}
}

private function seeIfHasUrl(?string $content):?string
private function seeIfHasUrl(?string $content): ?string
{
$hasUrl = get_url_from_body($content);

Expand Down Expand Up @@ -110,6 +110,7 @@ private function seeIfHasUrl(?string $content):?string
$content
);
}

return $content;
}
}
5 changes: 1 addition & 4 deletions tests/Feature/MailBoxParserJobTest.php
Expand Up @@ -12,20 +12,17 @@

class MailBoxParserJobTest extends TestCase
{


public function test_larger_message()
{
$dto = Response::from([
'content' => 'reduced content',
]);


ChatClient::shouldReceive('chat')
->once()
->andReturn($dto);

$text = get_fixture_v2("larger_text.txt", false);
$text = get_fixture_v2('larger_text.txt', false);
GetSiteWrapper::shouldReceive('handle')
->once()
->andReturn($text);
Expand Down

0 comments on commit f54a754

Please sign in to comment.