Skip to content
Snippets Groups Projects
Commit 510a49a0 authored by Liam Morland's avatar Liam Morland
Browse files

Coding standards

parent 1e5fba1c
No related branches found
No related tags found
No related merge requests found
...@@ -12,7 +12,7 @@ class FillPdfMergeTestCase extends ImageFieldTestCase { ...@@ -12,7 +12,7 @@ class FillPdfMergeTestCase extends ImageFieldTestCase {
protected $nonPrivilegedUser; protected $nonPrivilegedUser;
/** /**
* * {@inheritdoc}
*/ */
public static function getInfo() { public static function getInfo() {
// Note: getInfo() strings are not translated with t(). // Note: getInfo() strings are not translated with t().
...@@ -24,7 +24,7 @@ class FillPdfMergeTestCase extends ImageFieldTestCase { ...@@ -24,7 +24,7 @@ class FillPdfMergeTestCase extends ImageFieldTestCase {
} }
/** /**
* * {@inheritdoc}
*/ */
public function setUp() { public function setUp() {
parent::setUp(); parent::setUp();
...@@ -56,6 +56,7 @@ class FillPdfMergeTestCase extends ImageFieldTestCase { ...@@ -56,6 +56,7 @@ class FillPdfMergeTestCase extends ImageFieldTestCase {
} }
/** /**
* Test PDF merging.
* *
* @throws \FieldException * @throws \FieldException
*/ */
...@@ -292,7 +293,12 @@ class FillPdfMergeTestCase extends ImageFieldTestCase { ...@@ -292,7 +293,12 @@ class FillPdfMergeTestCase extends ImageFieldTestCase {
} }
} }
$expected_filename = 'Token_Test_term_title.pdf'; $expected_filename = 'Token_Test_term_title.pdf';
$this->assertEqual($expected_filename, $filename, t('Filename of generated file (@actual) matches specified entity token pattern (@expected). Current page URL: @url', array('@actual' => $filename, '@expected' => $expected_filename, '@url' => $where_are_we))); $args = array(
'@actual' => $filename,
'@expected' => $expected_filename,
'@url' => $where_are_we,
);
$this->assertEqual($expected_filename, $filename, t('Filename of generated file (@actual) matches specified entity token pattern (@expected). Current page URL: @url', $args));
// Test that node access via entity access works. // Test that node access via entity access works.
// Make a basic page. // Make a basic page.
...@@ -517,7 +523,7 @@ class FillPdfMergeTestCase extends ImageFieldTestCase { ...@@ -517,7 +523,7 @@ class FillPdfMergeTestCase extends ImageFieldTestCase {
} }
/** /**
* * Tests PDF merging using a local service.
*/ */
public function testLocalServicePdfMerging() { public function testLocalServicePdfMerging() {
$this->configureLocalServiceBackend(); $this->configureLocalServiceBackend();
...@@ -553,7 +559,7 @@ class FillPdfMergeTestCase extends ImageFieldTestCase { ...@@ -553,7 +559,7 @@ class FillPdfMergeTestCase extends ImageFieldTestCase {
} }
/** /**
* * Tests PDF merging.
*/ */
protected function backendTest() { protected function backendTest() {
$this->uploadTestPdf(); $this->uploadTestPdf();
......
<?php <?php
/** /**
* * Helper functions for FillPDF testing.
*/ */
trait FillPdfTestHelper { trait FillPdfTestHelper {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment