test: simplify how tests are named (#3394)

This commit is contained in:
Regis Freyd
2019-12-31 11:58:45 -05:00
committed by GitHub
parent 12c55a83bc
commit 3e27975606
192 changed files with 2239 additions and 1308 deletions
+8 -4
View File
@@ -13,7 +13,8 @@ class MessageTest extends TestCase
{
use DatabaseTransactions;
public function test_it_belongs_to_an_account()
/** @test */
public function it_belongs_to_an_account()
{
$account = factory(Account::class)->create([]);
$message = factory(Message::class)->create([
@@ -23,7 +24,8 @@ class MessageTest extends TestCase
$this->assertTrue($message->account()->exists());
}
public function test_it_belongs_to_a_contact()
/** @test */
public function it_belongs_to_a_contact()
{
$contact = factory(Contact::class)->create();
$message = factory(Message::class)->create([
@@ -33,7 +35,8 @@ class MessageTest extends TestCase
$this->assertTrue($message->contact()->exists());
}
public function test_it_belongs_to_a_conversation()
/** @test */
public function it_belongs_to_a_conversation()
{
$conversation = factory(Conversation::class)->create();
$message = factory(Message::class)->create([
@@ -43,7 +46,8 @@ class MessageTest extends TestCase
$this->assertTrue($message->conversation()->exists());
}
public function test_it_gets_the_content_attribute()
/** @test */
public function it_gets_the_content_attribute()
{
$message = factory(Message::class)->create([
'content' => 'This is a text',