Skip to content

Commit

Permalink
remove a question
Browse files Browse the repository at this point in the history
  • Loading branch information
lacpandore committed Sep 25, 2024
1 parent 2f77cb8 commit 9ff6d2b
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 11 deletions.
10 changes: 0 additions & 10 deletions data/Console/options_and_arguments.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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(???); <p style= margin-left:80px ><code>$commandTester->execute([ </code> <p style= margin-left:120px ><code>'command' => $command->getName(), </code> <p style= margin-left:80px ><code>]); </code> <p style= margin-left:40px ><code>} </code> <code>}</code>"
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'
2 changes: 1 addition & 1 deletion data/php_and_web_security/object_oriented_programming.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }
Expand Down

0 comments on commit 9ff6d2b

Please sign in to comment.