Model ticket link counterparts explicitly
This commit is contained in:
@@ -20,9 +20,9 @@ class TicketLinkTest extends TestCase
|
||||
use RefreshDatabase;
|
||||
|
||||
/**
|
||||
* Ensure the ticket link factory normalizes the stored source and target ticket ids.
|
||||
* Ensure the ticket link factory preserves the provided source and target direction.
|
||||
*/
|
||||
public function test_ticket_link_factory_normalizes_ticket_order(): void
|
||||
public function test_ticket_link_factory_preserves_ticket_direction(): void
|
||||
{
|
||||
$project = Project::factory()->create([
|
||||
'key' => 'CORE',
|
||||
@@ -61,8 +61,8 @@ class TicketLinkTest extends TestCase
|
||||
'ticket_link_type_id' => $ticketLinkType->id,
|
||||
]);
|
||||
|
||||
$this->assertSame($firstTicket->id, $ticketLink->source_ticket_id);
|
||||
$this->assertSame($secondTicket->id, $ticketLink->target_ticket_id);
|
||||
$this->assertSame($secondTicket->id, $ticketLink->source_ticket_id);
|
||||
$this->assertSame($firstTicket->id, $ticketLink->target_ticket_id);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user