Move stubs from ./stubs to ./shared/Stubs
Gathers all shared test code in single place.
This commit is contained in:
17
tests/unit/shared/Stubs/FunctionCallArgumentStub.ts
Normal file
17
tests/unit/shared/Stubs/FunctionCallArgumentStub.ts
Normal file
@@ -0,0 +1,17 @@
|
||||
import { IFunctionCallArgument } from '@/application/Parser/Script/Compiler/Function/Call/Argument/IFunctionCallArgument';
|
||||
|
||||
export class FunctionCallArgumentStub implements IFunctionCallArgument {
|
||||
public parameterName = 'stub-parameter-name';
|
||||
|
||||
public argumentValue = 'stub-arg-name';
|
||||
|
||||
public withParameterName(parameterName: string) {
|
||||
this.parameterName = parameterName;
|
||||
return this;
|
||||
}
|
||||
|
||||
public withArgumentValue(argumentValue: string) {
|
||||
this.argumentValue = argumentValue;
|
||||
return this;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user