Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

Create mocking dependency in unit test Laravel

Config::shouldReceive('get')
		->with('nama.key.confignya')
        ->andReturn('Expected Output');
 
PREVIOUS NEXT
Tagged: #Create #mocking #dependency #unit #test #Laravel
ADD COMMENT
Topic
Name
3+5 =