       end
     end
 
-    {:ok, pid} = InitEndpoint.start_link
+    {:ok, pid} = InitEndpoint.start_link()
     assert_receive {^pid, :sample}
   end
 
+  @tag :capture_log
   test "uses url configuration for static path" do
     Application.put_env(:phoenix, __MODULE__.UrlEndpoint, url: [path: "/api"])
     defmodule UrlEndpoint do
       use Phoenix.Endpoint, otp_app: :phoenix
     end
-    UrlEndpoint.start_link
+    UrlEndpoint.start_link()
     assert UrlEndpoint.path("/phoenix.png") =~ "/api/phoenix.png"
     assert UrlEndpoint.static_path("/phoenix.png") =~ "/api/phoenix.png"
   end
 
+  @tag :capture_log
   test "uses static_url configuration for static path" do
     Application.put_env(:phoenix, __MODULE__.StaticEndpoint, static_url: [path: "/static"])
     defmodule StaticEndpoint do
       use Phoenix.Endpoint, otp_app: :phoenix
     end
-    StaticEndpoint.start_link
+    StaticEndpoint.start_link()
     assert StaticEndpoint.path("/phoenix.png") =~ "/phoenix.png"
     assert StaticEndpoint.static_path("/phoenix.png") =~ "/static/phoenix.png"
   end

    assert Endpoint.static_path("/foo.css") == "/foo-ghijkl.css?vsn=d"
  end

  test "invokes init/2 callback" do
    Application.put_env(:phoenix, __MODULE__.InitEndpoint, parent: self())


    }
  end

  @tag :capture_log
  test "errors if pubsub adapter is set but not a name" do
    Process.flag(:trap_exit, true)
    {:error, {%ArgumentError{message: message}, _}} = NoPubSubNameEndpoint.start_link()
