package Ġcom . nic las _ van _ ey k . laravel _ make _ integration Ċ Ċ import Ġcom . nic las _ van _ ey k . laravel _ make _ integration . laravel . Composer Version Ċ import Ġcom . nic las _ van _ ey k . laravel _ make _ integration . laravel . detect Laravel Version From Lock file Contents Ċ import Ġjunit . framework . TestCase . assertEquals Ċ import Ġjunit . framework . TestCase . assertNotNull Ċ import Ġorg . junit . jupiter . api . Test Ċ Ċ class ĠLock File Version Detection Test Ġ{ ĊĠĠĠ Ġ@ Test ĊĠĠĠ Ġfun Ġit _ detect s _ the _ version () Ġ{ ĊĠĠĠĠĠĠĠ Ġval Ġlock file Contents Ġ= Ġthis :: class . java . class Loader . getResource (" example - composer . lock ") !!. read Text () ĊĊĠĠĠĠĠĠĠ ĠassertNotNull ( lock file Contents ) ĊĊĠĠĠĠĠĠĠ Ġval Ġdetected Version Ġ= Ġdetect Laravel Version From Lock file Contents ( lock file Contents ) ĊĊĠĠĠĠĠĠĠ ĠassertNotNull ( detected Version ) ĊĠĠĠĠĠĠĠ ĠassertEquals ( Composer Version ( 8 , Ġ 1 3 , Ġ 0 ), Ġdetected Version ) ĊĠĠĠ Ġ} Ċ }