createSegment('fetch_constant_logic'); $constant = $this->createConstant($segment, 'fetch_constant_logic_reference', ['99.90']); // A C T $response = $this->actingAsAdmin() ->getJson("/api/v1/segment/{$segment->id}/constant/show/{$constant->reference}"); // A S S E R T $response->assertStatus(200); $response->assertJsonPath('payload.data.id', $constant->id); $response->assertJsonPath('payload.data.reference', 'fetch_constant_logic_reference'); $response->assertJsonPath('payload.data.value.0', '99.90'); } }