public function test_it_commits_with_default_commit_message()
{
$this->config->merge(['config' => ['home' => realpath(__DIR__ . '/fixtures/home')]]);
$plugin = new ChangelogsPlugin();
$plugin->activate($this->composer, $this->io);
$operation = $this->getUpdateOperation();
$packageEvent = new PackageEvent(PackageEvents::POST_PACKAGE_UPDATE, $this->composer, $this->io, false, new DefaultPolicy(false, false), new Pool(), new CompositeRepository([]), new Request(new Pool()), [$operation], $operation);
$plugin->postPackageOperation($packageEvent);
$postUpdateEvent = new Event(ScriptEvents::POST_UPDATE_CMD, $this->composer, $this->io);
$plugin->postUpdate($postUpdateEvent);
$this->assertFileExists($this->tempDir . '/commit-message.txt');
$commitMessage = file_get_contents($this->tempDir . '/commit-message.txt');
$this->assertStringMatchesFormat('Update dependencies%aChangelogs summary:%a', $commitMessage);
}