Elgg\CommitMessageTest::testCanParseMessagesWithoutBody PHP Method

testCanParseMessagesWithoutBody() public method

    public function testCanParseMessagesWithoutBody()
    {
        $text = "chore(test): Summary";
        $msg = new CommitMessage($text);
        $this->assertTrue($msg->isValidFormat());
        $this->assertSame('chore', $msg->getPart('type'));
        $this->assertSame('test', $msg->getPart('component'));
        $this->assertSame('Summary', $msg->getPart('summary'));
        $this->assertSame('', $msg->getPart('body'));
    }