diff --git a/data/Console/options_and_arguments.yaml b/data/Console/options_and_arguments.yaml index 8f83f96..514f9ea 100644 --- a/data/Console/options_and_arguments.yaml +++ b/data/Console/options_and_arguments.yaml @@ -34,13 +34,3 @@ questions: - { value: 'False', correct: true } - { value: 'True', correct: false } help: 'https://github.com/symfony/symfony/blob/6.4/src/Symfony/Component/Console/Command/Command.php#L544' - - - uuid: 1eebf878-8ba4-6202-a4b0-99d84c92580c - question: "Given a command that requires answering to a multiple choices question, how could the inputs (marked as ???) be set in a test? final class CommandTest extends TestCase { public function testExecute(): void { $commandTester = new CommandTester($command); $commandTester->setInputs(???);
$commandTester->execute([
'command' => $command->getName(),
]);
}
}
"
- answers:
- - { value: "['first_input && second_input']", correct: false }
- - { value: "['first_input, second_input']", correct: false }
- - { value: "['first_input >> second_input']", correct: false }
- - { value: "It's not possible", correct: false }
- - { value: "['first_input', 'second_input']", correct: true }
- help: 'https://symfony.com/doc/current/components/console/helpers/questionhelper.html#testing-a-command-that-expects-input'
diff --git a/data/php_and_web_security/object_oriented_programming.yaml b/data/php_and_web_security/object_oriented_programming.yaml
index 3b992b3..02ce4c7 100644
--- a/data/php_and_web_security/object_oriented_programming.yaml
+++ b/data/php_and_web_security/object_oriented_programming.yaml
@@ -81,7 +81,7 @@ questions:
help: 'https://php.net/manual/fr/book.reflection.php'
-
uuid: 1eebf878-8ba5-6116-88ba-99d84c92580c
- question: 'Is it possible make $tags directly indexed with a specified field ?/** @Entity */ class Content { /** @OneToMany(targetEntity= Tag ) */ private Tag $tags; }'
+ question: 'Is it possible make $tags directly indexed with a specified field ?/** @Entity */ class Content { /** @OneToMany(targetEntity="Tag") */ private Tag $tags; }'
answers:
- { value: 'Yes, by adding the attribute indexBy to the OneToMany annotation', correct: true }
- { value: 'No', correct: false }