#113 Test commit

Closed Pseudo commit used to compare (513f660...81b1511)

No flags found

Use flags to group coverage reports by test type, project and/or folders.
Then setup custom commit statuses and notifications for each flag.

e.g., #unittest #integration

#production #enterprise

#frontend #backend

Learn more about Codecov Flags here.

Showing 1 of 4 files from the diff.

@@ -6,6 +6,7 @@
Loading
6 6
use SilverStripe\Control\Director;
7 7
use SilverStripe\Control\HTTPResponse;
8 8
use SilverStripe\StaticPublishQueue\Publisher;
9 +
use function SilverStripe\StaticPublishQueue\PathToURL;
9 10
use function SilverStripe\StaticPublishQueue\URLtoPath;
10 11
11 12
class FilesystemPublisher extends Publisher
@@ -196,21 +197,7 @@
Loading
196 197
197 198
    protected function pathToURL($path)
198 199
    {
199 -
        if (strpos($path, $this->getDestPath()) === 0) {
200 -
            //Strip off the full path of the cache dir from the front
201 -
            $path = substr($path, strlen($this->getDestPath()));
202 -
        }
203 -
204 -
        // Strip off the file extension and leading /
205 -
        $relativeURL = substr($path, 0, (strrpos($path, ".")));
206 -
        $relativeURL = ltrim($relativeURL, '/');
207 -
208 -
        if (FilesystemPublisher::config()->get('domain_based_caching')) {
209 -
            // factor in the domain as the top dir
210 -
            return Director::protocol() . $relativeURL;
211 -
        }
212 -
213 -
        return $relativeURL == 'index' ? Director::absoluteBaseURL() : Director::absoluteURL($relativeURL);
200 +
        return PathToURL($path, $this->getDestPath(), FilesystemPublisher::config()->get('domain_based_caching'));
214 201
    }
215 202
216 203
    public function getPublishedURLs($dir = null, &$result = [])

Learn more Showing 3 files with coverage changes found.

Changes in src/Task/StaticCacheFullBuildTask.php
+10
Loading file...
Changes in src/Job/StaticCacheFullBuildJob.php
+1
Loading file...
Changes in src/Publisher/FilesystemPublisher.php
+8
Loading file...
Files Complexity Coverage
src ø +8.15% 55.32%
Project Totals (9 files) 125 55.32%
Loading